From: Ilia Alshanetsky Date: Wed, 23 Feb 2005 18:48:49 +0000 (+0000) Subject: MFB_4_3: Fixed bug #29521 (compress.bzip2 returns error when used with http X-Git-Tag: RELEASE_0_3~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ffe5a485d0e85d6460d3870e9ebfb171823c9d7;p=php MFB_4_3: Fixed bug #29521 (compress.bzip2 returns error when used with http wrapper). --- diff --git a/ext/bz2/bz2.c b/ext/bz2/bz2.c index e51c993b5a..4718220205 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;