From 905505d0f0275d5aaa65a53fb60ec327ef6c40b2 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 23 Feb 2005 18:48:57 +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 515197f9d3..38a5d13f0e 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