moriyoshi Wed Feb 19 03:12:26 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/main streams.c
Log:
MFH: fix incorrect TSRMLS_CC
Index: php4/main/streams.c
diff -u php4/main/streams.c:1.125.2.31 php4/main/streams.c:1.125.2.32
--- php4/main/streams.c:1.125.2.31 Sat Feb 15 14:59:26 2003
+++ php4/main/streams.c Wed Feb 19 03:12:25 2003
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streams.c,v 1.125.2.31 2003/02/15 19:59:26 moriyoshi Exp $ */
+/* $Id: streams.c,v 1.125.2.32 2003/02/19 08:12:25 moriyoshi Exp $ */
#define _GNU_SOURCE
#include "php.h"
@@ -1156,6 +1156,7 @@
size_t readchunk;
size_t haveread = 0;
size_t didread;
+ php_stream_statbuf ssbuf;
#if HAVE_MMAP
int srcfd;
#endif
@@ -1201,14 +1202,11 @@
}
#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;
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php