1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00

Fix #46636 (segfault in SplFileinfo::fgetcsv())

This commit is contained in:
Etienne Kneuss
2008-12-20 00:51:00 +00:00
parent b0b32deb12
commit b884dddbbf

View File

@@ -2265,7 +2265,7 @@ cleanup:
PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char escape, size_t buf_len, char *buf, zval *return_value TSRMLS_DC) /* {{{ */
{
char *delim = &delimiter, *enc = &enclosure, *buffer = buf, *esc;
char *delim = &delimiter, *enc = &enclosure, *buffer = buf, *esc = &escape;
int delim_len = 1, enc_len = 1, esc_len = 1, buffer_len = buf_len;
zend_uchar type = IS_STRING;