- Fixed bug #41865 (fputcsv(): 2nd parameter is not optional)

This commit is contained in:
foobar 2007-07-01 21:26:30 +00:00
parent 3c36d33309
commit f730ecf98c

View File

@ -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;