1 diff -up php-5.2.17/ext/standard/file.c.bug-55674 php-5.2.17/ext/standard/file.c
2 --- php-5.2.17/ext/standard/file.c.bug-55674 2012-01-12 09:39:13.000000000 +0700
3 +++ php-5.2.17/ext/standard/file.c 2012-01-12 09:39:28.000000000 +0700
4 @@ -2156,7 +2156,7 @@ PHPAPI void php_fgetcsv(php_stream *stre
5 inc_len = (bptr < limit ? (*bptr == '\0' ? 1: php_mblen(bptr, limit - bptr)): 0);
8 - while (isspace((int)*(unsigned char *)tmp)) {
9 + while ((*tmp != delimiter) && isspace((int)*(unsigned char *)tmp)) {
12 if (*tmp == enclosure) {