From: Steph Fox Date: Sat, 1 Mar 2008 22:28:33 +0000 (+0000) Subject: Right problem, wrong solution. Also missed an '= 1' , thanks Marcus X-Git-Tag: RELEASE_2_0_0a1~278 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4cf7e47f63e8078d02183ec7f80de8607973a51;p=php Right problem, wrong solution. Also missed an '= 1' , thanks Marcus --- diff --git a/ext/phar/phar_internal.h b/ext/phar/phar_internal.h index 7b47c3004d..7cc44b4fc8 100755 --- a/ext/phar/phar_internal.h +++ b/ext/phar/phar_internal.h @@ -338,6 +338,8 @@ union _phar_entry_object { }; #endif +BEGIN_EXTERN_C() + int phar_has_bz2; int phar_has_zlib; @@ -357,8 +359,6 @@ static inline void phar_unixify_path_separators(char *path, int path_len) } #endif -BEGIN_EXTERN_C() - void phar_request_initialize(TSRMLS_D); void phar_object_init(TSRMLS_D); diff --git a/ext/phar/zip.c b/ext/phar/zip.c index f76b7b0b83..9beffedf63 100644 --- a/ext/phar/zip.c +++ b/ext/phar/zip.c @@ -386,7 +386,7 @@ int phar_open_or_create_zip(char *fname, int fname_len, char *alias, int alias_l phar->is_data = is_data; if (is_data) { - phar->is_writeable; + phar->is_writeable = 1; phar->alias = NULL; phar->alias_len = 0; }