diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-03-17 18:32:15 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-03-17 18:32:15 +0000 |
commit | 27a7eaf4e7a10a7ac88263c85539a4d73fc24ffb (patch) | |
tree | 1b65f1bda94aef7602cfd2057ce681820cab3bb5 | |
parent | 6443ce1fc5cf2bbaadc3ca55f8fbc00cc73af6a7 (diff) | |
download | php-git-27a7eaf4e7a10a7ac88263c85539a4d73fc24ffb.tar.gz |
Fixed bug #22538 (failed stat on stdio/stdin/stderr streams).
-rwxr-xr-x | main/streams/streams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c index 26dd0c822c..728a602bd9 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1168,7 +1168,7 @@ PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size 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; } } |