felipe          Wed May 28 17:24:47 2008 UTC

  Modified files:              
    /php-src/ext/standard       file.c 
  Log:
  - Added zval separation (avoid crash when using fwrite($fp, $fp)).
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.518&r2=1.519&diff_format=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.518 php-src/ext/standard/file.c:1.519
--- php-src/ext/standard/file.c:1.518   Sun May  4 21:16:22 2008
+++ php-src/ext/standard/file.c Wed May 28 17:24:47 2008
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: file.c,v 1.518 2008/05/04 21:16:22 colder Exp $ */
+/* $Id: file.c,v 1.519 2008/05/28 17:24:47 felipe Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -1358,7 +1358,7 @@
        php_stream *stream;
        zval *zstream, *zstring;
 
-       if (zend_parse_parameters(argc TSRMLS_CC, "rz|l", &zstream, &zstring, 
&write_len) == FAILURE) {
+       if (zend_parse_parameters(argc TSRMLS_CC, "rz/|l", &zstream, &zstring, 
&write_len) == FAILURE) {
                RETURN_NULL();
        }
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to