]> granicus.if.org Git - php/commitdiff
MFH
authorIlia Alshanetsky <iliaa@php.net>
Mon, 17 Mar 2003 18:47:29 +0000 (18:47 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 17 Mar 2003 18:47:29 +0000 (18:47 +0000)
main/streams.c

index 406ec0ddd554efc042482af11ebb9501ae0c5063..d79c5d878cd52f5fd109e2f614fda1e62f989408 100755 (executable)
@@ -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;
                }
        }