sniper Sun Jul 1 21:26:30 2007 UTC
Modified files:
/php-src/ext/standard file.c
Log:
- Fixed bug #41865 (fputcsv(): 2nd parameter is not optional)
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.492&r2=1.493&diff_format=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.492 php-src/ext/standard/file.c:1.493
--- php-src/ext/standard/file.c:1.492 Thu Jun 14 19:56:35 2007
+++ php-src/ext/standard/file.c Sun Jul 1 21:26:30 2007
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.492 2007/06/14 19:56:35 pajoye Exp $ */
+/* $Id: file.c,v 1.493 2007/07/01 21:26:30 sniper Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -1996,7 +1996,7 @@
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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php