iliaa Wed Aug 25 10:22:48 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/bz2 bz2.c Log: Fixed operations on remote bzip2 compressed files ala: compress.bzip2://http://downloads.php.net/ilia/php-4.3.5RC1.tar.bz2 Patch by Wez (MFH from HEAD) http://cvs.php.net/diff.php/php-src/ext/bz2/bz2.c?r1=1.1.2.2&r2=1.1.2.3&ty=u Index: php-src/ext/bz2/bz2.c diff -u php-src/ext/bz2/bz2.c:1.1.2.2 php-src/ext/bz2/bz2.c:1.1.2.3 --- php-src/ext/bz2/bz2.c:1.1.2.2 Mon Sep 15 19:49:41 2003 +++ php-src/ext/bz2/bz2.c Wed Aug 25 10:22:48 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: bz2.c,v 1.1.2.2 2003/09/15 23:49:41 iliaa Exp $ */ +/* $Id: bz2.c,v 1.1.2.3 2004/08/25 14:22:48 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -185,7 +185,7 @@ 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php