summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-03-17 18:47:29 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-03-17 18:47:29 +0000
commitc2c3eaf5a7dd001f800a0827b6ebaa50d448fbc7 (patch)
tree8bbf0bb04c4d7d42c8a67df460dfc38e506eee5a /main
parent768f515afc03a85ce589d9e1a138e238809e8af9 (diff)
downloadphp-git-c2c3eaf5a7dd001f800a0827b6ebaa50d448fbc7.tar.gz
MFH
Diffstat (limited to 'main')
-rwxr-xr-xmain/streams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams.c b/main/streams.c
index 406ec0ddd5..d79c5d878c 100755
--- a/main/streams.c
+++ b/main/streams.c
@@ -1209,7 +1209,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;
}
}