From: Ilia Alshanetsky Date: Wed, 25 Aug 2004 14:22:48 +0000 (+0000) Subject: Fixed operations on remote bzip2 compressed files ala: X-Git-Tag: php-4.3.9RC2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1efef3488f2633753eca1ad8d3fd4ae2c3abd73e;p=php Fixed operations on remote bzip2 compressed files ala: compress.bzip2://http://downloads.php.net/ilia/php-4.3.5RC1.tar.bz2 Patch by Wez (MFH from HEAD) --- diff --git a/ext/bz2/bz2.c b/ext/bz2/bz2.c index 67c08c9170..d8772f2125 100644 --- a/ext/bz2/bz2.c +++ b/ext/bz2/bz2.c @@ -185,7 +185,7 @@ PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, if (bz_file == NULL) { /* that didn't work, so try and get something from the network/wrapper */ - stream = php_stream_open_wrapper(path, mode, options, opened_path); + stream = php_stream_open_wrapper(path, mode, options | STREAM_WILL_CAST, opened_path); if (stream) { int fd;