At 06:32 PM 3/17/2003 +0000, Ilia Alshanetsky wrote:
iliaa Mon Mar 17 13:32:15 2003 EDT
Modified files: /php4/main/streams streams.c Log: Fixed bug #22538 (failed stat on stdio/stdin/stderr streams).
Index: php4/main/streams/streams.c diff -u php4/main/streams/streams.c:1.8 php4/main/streams/streams.c:1.9 --- php4/main/streams/streams.c:1.8 Thu Mar 6 15:31:20 2003 +++ php4/main/streams/streams.c Mon Mar 17 13:32:15 2003 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */
-/* $Id: streams.c,v 1.8 2003/03/06 20:31:20 sesser Exp $ */ +/* $Id: streams.c,v 1.9 2003/03/17 18:32:15 iliaa Exp $ */
#define _GNU_SOURCE
#include "php.h"
@@ -1168,7 +1168,7 @@
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) {
+ if (ssbuf.sb.st_size == 0 && !S_ISFIFO(ssbuf.sb.st_mode)) {
return 1;
}
}
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php