From 5ffe5a485d0e85d6460d3870e9ebfb171823c9d7 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 23 Feb 2005 18:48:49 +0000 Subject: [PATCH] MFB_4_3: Fixed bug #29521 (compress.bzip2 returns error when used with http wrapper). --- ext/bz2/bz2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1