From d4cf7e47f63e8078d02183ec7f80de8607973a51 Mon Sep 17 00:00:00 2001 From: Steph Fox Date: Sat, 1 Mar 2008 22:28:33 +0000 Subject: [PATCH] Right problem, wrong solution. Also missed an '= 1' , thanks Marcus --- ext/phar/phar_internal.h | 4 ++-- ext/phar/zip.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.50.1