]> granicus.if.org Git - php/commitdiff
Fixed operations on remote bzip2 compressed files ala:
authorIlia Alshanetsky <iliaa@php.net>
Wed, 25 Aug 2004 14:22:48 +0000 (14:22 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 25 Aug 2004 14:22:48 +0000 (14:22 +0000)
compress.bzip2://http://downloads.php.net/ilia/php-4.3.5RC1.tar.bz2

Patch by Wez (MFH from HEAD)

ext/bz2/bz2.c

index 67c08c91706a9adec78bdf2339239c771f575aea..d8772f212545361eb4ce03f22b413cc9026f1054 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;