]> granicus.if.org Git - php/commitdiff
Fixed bug #25429 (fix copying of stdin using copy() function)
authorIlia Alshanetsky <iliaa@php.net>
Wed, 10 Sep 2003 00:58:12 +0000 (00:58 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 10 Sep 2003 00:58:12 +0000 (00:58 +0000)
main/streams/streams.c

index 0c5348658b21178bd33267705c47df56a09ae5e7..90e77b710eca60cde60b078c346af60dc291200c 100755 (executable)
@@ -1243,6 +1243,9 @@ PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size
                if (ssbuf.sb.st_size == 0
 #ifdef S_ISFIFO
                 && !S_ISFIFO(ssbuf.sb.st_mode)
+#endif
+#ifdef S_ISCHR
+                && !S_ISCHR(ssbuf.sb.st_mode)
 #endif
                ) {
                        return 1;