From a20e85a081b257a9b3a8bc90c6aa6c08ec3d18d7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 4 Mar 2020 09:01:16 +0100 Subject: New package --- 0001-fix-c89.patch | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 0001-fix-c89.patch (limited to '0001-fix-c89.patch') diff --git a/0001-fix-c89.patch b/0001-fix-c89.patch new file mode 100644 index 0000000..d5ba611 --- /dev/null +++ b/0001-fix-c89.patch @@ -0,0 +1,33 @@ +From 9085a7d766983a4d3aa9172a64b0e79c9cb01ae5 Mon Sep 17 00:00:00 2001 +From: Remi Collet +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 + -- cgit