iliaa Mon Mar 17 13:47:30 2003 EDT Modified files: (Branch: PHP_4_3) /php4/main streams.c Log: MFH Index: php4/main/streams.c diff -u php4/main/streams.c:1.125.2.38 php4/main/streams.c:1.125.2.39 --- php4/main/streams.c:1.125.2.38 Sat Mar 15 08:25:38 2003 +++ php4/main/streams.c Mon Mar 17 13:47:29 2003 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.125.2.38 2003/03/15 13:25:38 wez Exp $ */ +/* $Id: streams.c,v 1.125.2.39 2003/03/17 18:47:29 iliaa Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -1209,7 +1209,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