iliaa Mon Mar 31 22:44:38 2008 UTC Modified files: /php-src/ext/standard file.c Log: Revert unintended bits from "Added a warning message" commit http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.516&r2=1.517&diff_format=u Index: php-src/ext/standard/file.c diff -u php-src/ext/standard/file.c:1.516 php-src/ext/standard/file.c:1.517 --- php-src/ext/standard/file.c:1.516 Sun Mar 30 15:31:33 2008 +++ php-src/ext/standard/file.c Mon Mar 31 22:44:38 2008 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.516 2008/03/30 15:31:33 felipe Exp $ */ +/* $Id: file.c,v 1.517 2008/03/31 22:44:38 iliaa Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -622,8 +622,8 @@ long flags = ((argc < 3) && UG(unicode)) ? PHP_FILE_TEXT : 0; zval *zcontext = NULL; php_stream_context *context = NULL; + char mode[3] = { 'w', 0, 0 }; php_stream *srcstream = NULL; - char mode[3] = "wb"; if (zend_parse_parameters(argc TSRMLS_CC, "Zz/|lr!", &ppfilename, &data, &flags, &zcontext) == FAILURE) { return; @@ -659,10 +659,6 @@ RETURN_FALSE; } - if (mode[0] = 'c') { - php_stream_truncate_set_size(stream, 0); - } - switch (Z_TYPE_P(data)) { case IS_RESOURCE: numchars = php_stream_copy_to_stream(srcstream, stream, PHP_STREAM_COPY_ALL);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php