@@ -1764,7 +1764,7 @@ PHPAPI PHP_FUNCTION(fread)
1764
1764
}
1765
1765
/* }}} */
1766
1766
1767
- static const char * php_fgetcsv_lookup_trailing_spaces (const char * ptr , size_t len , const char delimiter ) /* {{{ */
1767
+ static const char * php_fgetcsv_lookup_trailing_spaces (const char * ptr , size_t len ) /* {{{ */
1768
1768
{
1769
1769
int inc_len ;
1770
1770
unsigned char last_chars [2 ] = { 0 , 0 };
@@ -2049,7 +2049,7 @@ PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, int
2049
2049
/* Strip trailing space from buf, saving end of line in case required for enclosure field */
2050
2050
2051
2051
bptr = buf ;
2052
- tptr = (char * )php_fgetcsv_lookup_trailing_spaces (buf , buf_len , delimiter );
2052
+ tptr = (char * )php_fgetcsv_lookup_trailing_spaces (buf , buf_len );
2053
2053
line_end_len = buf_len - (size_t )(tptr - buf );
2054
2054
line_end = limit = tptr ;
2055
2055
@@ -2147,7 +2147,7 @@ PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, int
2147
2147
bptr = buf = new_buf ;
2148
2148
hunk_begin = buf ;
2149
2149
2150
- line_end = limit = (char * )php_fgetcsv_lookup_trailing_spaces (buf , buf_len , delimiter );
2150
+ line_end = limit = (char * )php_fgetcsv_lookup_trailing_spaces (buf , buf_len );
2151
2151
line_end_len = buf_len - (size_t )(limit - buf );
2152
2152
2153
2153
state = 0 ;
@@ -2274,7 +2274,7 @@ PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, int
2274
2274
memcpy (tptr , hunk_begin , bptr - hunk_begin );
2275
2275
tptr += (bptr - hunk_begin );
2276
2276
2277
- comp_end = (char * )php_fgetcsv_lookup_trailing_spaces (temp , tptr - temp , delimiter );
2277
+ comp_end = (char * )php_fgetcsv_lookup_trailing_spaces (temp , tptr - temp );
2278
2278
if (* bptr == delimiter ) {
2279
2279
bptr ++ ;
2280
2280
}
0 commit comments