summaryrefslogtreecommitdiffstats
path: root/0001-fix-c89.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-fix-c89.patch')
-rw-r--r--0001-fix-c89.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/0001-fix-c89.patch b/0001-fix-c89.patch
deleted file mode 100644
index d5ba611..0000000
--- a/0001-fix-c89.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 9085a7d766983a4d3aa9172a64b0e79c9cb01ae5 Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Wed, 4 Mar 2020 08:49:20 +0100
-Subject: [PATCH] fix c89
-
----
- csv.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/csv.c b/csv.c
-index 0ed90d3..77263b6 100644
---- a/csv.c
-+++ b/csv.c
-@@ -226,6 +226,7 @@ static HashTable* rfc4180_string_to_hashtable(
- char **buffer, const size_t length, const zend_string *delimiter,
- const zend_string *enclosure, const zend_string *eol_sequence)
- {
-+ size_t index;
- HashTable *return_value = zend_new_array(8);
-
- bool in_escaped_field = false;
-@@ -237,7 +238,7 @@ static HashTable* rfc4180_string_to_hashtable(
- size_t field_value_length = 0;
-
- /* Main loop to "tokenize" the row */
-- for (size_t index = 0; index < length; ++index) {
-+ for (index = 0; index < length; ++index) {
- /* Check for field escape sequence (i.e. enclosure) */
- if (php_memnstr(row, ZSTR_VAL(enclosure), ZSTR_LEN(enclosure), row + ZSTR_LEN(enclosure))) {
- row += ZSTR_LEN(enclosure);
---
-2.24.1
-