From: Ilia Alshanetsky Date: Tue, 17 Aug 2004 14:10:03 +0000 (+0000) Subject: Fixed bug #29719 (fgetcsv() has problem parsing strings ending with escaped X-Git-Tag: php-4.3.9RC2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0902bfa37d974ff9c7062867422c3be2261f9fc;p=php Fixed bug #29719 (fgetcsv() has problem parsing strings ending with escaped enclosures). --- diff --git a/NEWS b/NEWS index b812fd21cb..749a1efe0f 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ PHP 4 NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2004, Version 4.3.9 - Fixed a file-descriptor leak with phpinfo() and other 'special' URLs (Zeev) +- Fixed bug #29719 (fgetcsv() has problem parsing strings ending with escaped + enclosures). (Ilia) - Fixed bug #29599 (domxml_error segfaults another apache module). (Rob) - Fixed bug #29594 (Use PHP's own tmpfile() implementation). (Ilia) diff --git a/ext/standard/file.c b/ext/standard/file.c index 6b2aa26f7e..f798105e88 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -2410,10 +2410,6 @@ enclosure: goto enclosure; } } else { - while (e < re && e > s && *(e - 1) == enclosure) { - e--; - } - buf2 = erealloc(buf2, buf2_len + (e - s) + 1); memcpy(buf2 + buf2_len, s, (e - s)); buf2_len += e - s;