From: Moriyoshi Koizumi Date: Wed, 19 Feb 2003 08:12:25 +0000 (+0000) Subject: MFH: fix incorrect TSRMLS_CC X-Git-Tag: php-4.3.2RC1~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe2506a5ff7be617ff73cc96248086fdb9644687;p=php MFH: fix incorrect TSRMLS_CC --- diff --git a/main/streams.c b/main/streams.c index 6b3a020dd1..4f8454989d 100755 --- a/main/streams.c +++ b/main/streams.c @@ -1156,6 +1156,7 @@ PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size size_t readchunk; size_t haveread = 0; size_t didread; + php_stream_statbuf ssbuf; #if HAVE_MMAP int srcfd; #endif @@ -1201,14 +1202,11 @@ PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size } #endif - { - php_stream_statbuf sbuf; - if (php_stream_stat(src, &sbuf TSRMLS_CC) == 0) { - /* in the event that the source file is 0 bytes, return 1 to indicate success - * because opening the file to write had already created a copy */ - if (sbuf.sb.st_size == 0) { - return 1; - } + if (php_stream_stat(src, &ssbuf) == 0) { + /* in the event that the source file is 0 bytes, return 1 to indicate success + * because opening the file to write had already created a copy */ + if (ssbuf.sb.st_size == 0) { + return 1; } }