]> granicus.if.org Git - php/commitdiff
MFH: fix incorrect TSRMLS_CC
authorMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 19 Feb 2003 08:12:25 +0000 (08:12 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 19 Feb 2003 08:12:25 +0000 (08:12 +0000)
main/streams.c

index 6b3a020dd16a9c2f983d7a903f420dae839e8e2d..4f8454989d916b1f8a71864a39fe8101b2dc07df 100755 (executable)
@@ -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;
                }
        }