Skip to content

Commit 9102e97

Browse files
committed
Use bool in globals where possible
1 parent 4cbe88b commit 9102e97

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ext/phar/phar_internal.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,19 @@ ZEND_BEGIN_MODULE_GLOBALS(phar)
137137
phar_entry_fp *cached_fp;
138138
HashTable phar_alias_map;
139139
int phar_SERVER_mung_list;
140-
int readonly;
141140
char* cache_list;
142-
int manifest_cached;
143-
int persist;
144-
int has_zlib;
145-
int has_bz2;
141+
bool readonly;
142+
bool manifest_cached;
143+
bool persist;
144+
bool has_zlib;
145+
bool has_bz2;
146146
bool readonly_orig;
147147
bool require_hash_orig;
148148
bool intercepted;
149-
int request_init;
150-
int require_hash;
151-
int request_done;
152-
int request_ends;
149+
bool request_init;
150+
bool require_hash;
151+
bool request_done;
152+
bool request_ends;
153153
zif_handler orig_fopen;
154154
zif_handler orig_file_get_contents;
155155
zif_handler orig_is_file;
@@ -175,7 +175,7 @@ ZEND_BEGIN_MODULE_GLOBALS(phar)
175175
/* used for includes with . in them inside front controller */
176176
char* cwd;
177177
uint32_t cwd_len;
178-
int cwd_init;
178+
bool cwd_init;
179179
char *openssl_privatekey;
180180
uint32_t openssl_privatekey_len;
181181
/* phar_get_archive cache */

0 commit comments

Comments
 (0)