From: Ilia Alshanetsky Date: Wed, 10 Sep 2003 00:59:46 +0000 (+0000) Subject: MFH: Fixed bug #25429 (fix copying of stdin using copy() function) X-Git-Tag: php-4.3.4RC1~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f695ba37d4633188b092527a0ad1669baf2cd7e;p=php MFH: Fixed bug #25429 (fix copying of stdin using copy() function) --- diff --git a/NEWS b/NEWS index 4f71142677..ca2bca7b6a 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,7 @@ PHP 4 NEWS - Fixed crash bug when non-existing save/serializer handler was used. (Jani) - Fixed memory leak in gethostbynamel() if an error occurs. (Sara) - Fixed FastCGI being unable to bind to a specific IP. (Sascha) +- Fixed bug #25429 (fix copying of stdin using copy() function). (Ilia) - Fixed bug #25424 (ext/informix: lvarchar not supported in win32). (Jani) - Fixed bug #25404 (ext/pgsql: open transactions not closed when script ends). (Marcus) diff --git a/main/streams.c b/main/streams.c index 2b1ebd39cf..df4b18a46c 100755 --- a/main/streams.c +++ b/main/streams.c @@ -1263,6 +1263,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;