From: foobar Date: Sun, 1 Jul 2007 21:26:30 +0000 (+0000) Subject: - Fixed bug #41865 (fputcsv(): 2nd parameter is not optional) X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~335 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f730ecf98c851eaf257c57777a3bc4867b2e88af;p=php - Fixed bug #41865 (fputcsv(): 2nd parameter is not optional) --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 375555bc40..0863727514 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1996,7 +1996,7 @@ PHP_FUNCTION(fputcsv) int count, i = 0; smart_str csvline = {0}; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ass", + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ra|ss", &fp, &fields, &delimiter_str, &delimiter_str_len, &enclosure_str, &enclosure_str_len) == FAILURE) { return;