]> 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:57 +0000 (18:48 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 23 Feb 2005 18:48:57 +0000 (18:48 +0000)
wrapper)

ext/bz2/bz2.c

index 515197f9d34c1b0d754b1e0c2850f3554653a525..38a5d13f0ec851e1c1a168dfc9d82a0aa48ba813 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;