]> granicus.if.org Git - php/commitdiff
MFB_4_3: Fixed bug #29521 (compress.bzip2 returns error when used with http
authorIlia Alshanetsky <iliaa@php.net>
Wed, 23 Feb 2005 18:48:49 +0000 (18:48 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 23 Feb 2005 18:48:49 +0000 (18:48 +0000)
wrapper).

ext/bz2/bz2.c

index e51c993b5ab8713050e023c71706bf67b08c2e8e..471822020512fc94c622bae19eb675ede98055b3 100644 (file)
@@ -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;