]> granicus.if.org Git - php/commitdiff
MFH: - Fixed bug #41865 (fputcsv(): 2nd parameter is not optional)
authorfoobar <sniper@php.net>
Sun, 1 Jul 2007 21:28:16 +0000 (21:28 +0000)
committerfoobar <sniper@php.net>
Sun, 1 Jul 2007 21:28:16 +0000 (21:28 +0000)
NEWS
ext/standard/file.c

diff --git a/NEWS b/NEWS
index 76a4e6692d1659aab3261c337a9e465a26762b07..30db43d9c9f1a1e161ec329d6b79b4cec8e60662 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -39,6 +39,7 @@ PHP                                                                        NEWS
 - Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory 
   already exists). (Pierre)
 
+- Fixed bug #41865 (fputcsv(): 2nd parameter is not optional). (Jani)
 - Fixed bug #41813 (segmentation fault when using string offset as an object).
   (judas dot iscariote at gmail dot com, Tony)
 - Fixed bug #41795 (checkdnsrr does not support DNS_TXT type). 
index e6dd5d71a43c479a95fd169231acab79e3365578..a153d1cf87804130ae413a131206e599f03df4dd 100644 (file)
@@ -1914,7 +1914,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;