mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- Fixed bug #41865 (fputcsv(): 2nd parameter is not optional)
This commit is contained in:
parent
3c36d33309
commit
f730ecf98c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user