From fe2506a5ff7be617ff73cc96248086fdb9644687 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Wed, 19 Feb 2003 08:12:25 +0000 Subject: [PATCH] MFH: fix incorrect TSRMLS_CC --- main/streams.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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; } } -- 2.50.1