Lines Matching refs:PHAR_G
85 if (!PHAR_G(phar_SERVER_mung_list)) { in phar_mung_server_vars()
89 if (PHAR_G(phar_SERVER_mung_list) & PHAR_MUNG_REQUEST_URI) { in phar_mung_server_vars()
101 if (PHAR_G(phar_SERVER_mung_list) & PHAR_MUNG_PHP_SELF) { in phar_mung_server_vars()
114 if (PHAR_G(phar_SERVER_mung_list) & PHAR_MUNG_SCRIPT_NAME) { in phar_mung_server_vars()
122 if (PHAR_G(phar_SERVER_mung_list) & PHAR_MUNG_SCRIPT_FILENAME) { in phar_mung_server_vars()
225 PHAR_G(cwd) = NULL; in phar_file_action()
226 PHAR_G(cwd_len) = 0; in phar_file_action()
231 PHAR_G(cwd_init) = 1; in phar_file_action()
234 PHAR_G(cwd_len) = 0; in phar_file_action()
235 PHAR_G(cwd) = NULL; in phar_file_action()
237 PHAR_G(cwd_len) = (cwd - (entry + 1)); in phar_file_action()
238 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len)); in phar_file_action()
240 PHAR_G(cwd_len) = (cwd - entry); in phar_file_action()
241 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_file_action()
264 if (PHAR_G(cwd)) { in phar_file_action()
265 efree(PHAR_G(cwd)); in phar_file_action()
266 PHAR_G(cwd) = NULL; in phar_file_action()
267 PHAR_G(cwd_len) = 0; in phar_file_action()
270 PHAR_G(cwd_init) = 0; in phar_file_action()
276 if (PHAR_G(cwd)) { in phar_file_action()
277 efree(PHAR_G(cwd)); in phar_file_action()
278 PHAR_G(cwd) = NULL; in phar_file_action()
279 PHAR_G(cwd_len) = 0; in phar_file_action()
282 PHAR_G(cwd_init) = 0; in phar_file_action()
343 pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len); in phar_postprocess_ru_web()
345 if (!pphar && PHAR_G(manifest_cached)) { in phar_postprocess_ru_web()
467 if (NULL == (pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), arch, arch_len))) { in PHP_METHOD()
468 …if (PHAR_G(manifest_cached) && NULL != (pphar = zend_hash_str_find_ptr(&cached_phars, arch, arch_l… in PHP_METHOD()
505 …} else if (HT_IS_INITIALIZED(&PHAR_G(phar_fname_map)) && NULL != (pphar = zend_hash_str_find_ptr(&… in PHP_METHOD()
507 …} else if (PHAR_G(manifest_cached) && NULL != (pphar = zend_hash_str_find_ptr(&cached_phars, fname… in PHP_METHOD()
845 code = phar_file_type(&PHAR_G(mime_types), entry, &mime_type); in PHP_METHOD()
889 PHAR_G(phar_SERVER_mung_list) |= PHAR_MUNG_PHP_SELF; in PHP_METHOD()
891 PHAR_G(phar_SERVER_mung_list) |= PHAR_MUNG_REQUEST_URI; in PHP_METHOD()
893 PHAR_G(phar_SERVER_mung_list) |= PHAR_MUNG_SCRIPT_NAME; in PHP_METHOD()
895 PHAR_G(phar_SERVER_mung_list) |= PHAR_MUNG_SCRIPT_FILENAME; in PHP_METHOD()
1006 if (PHAR_G(has_zlib)) { in PHP_METHOD()
1012 if (PHAR_G(has_bz2)) { in PHP_METHOD()
1018 if (PHAR_G(has_zlib) || PHAR_G(has_bz2)) { in PHP_METHOD()
1033 RETURN_BOOL(!PHAR_G(readonly)); in PHP_METHOD()
1219 …zend_hash_str_add_ptr(&PHAR_G(phar_persist_map), (const char *) phar_obj->archive, sizeof(phar_obj… in PHP_METHOD()
1264 if (PHAR_G(has_zlib)) { in PHP_METHOD()
1268 if (PHAR_G(has_bz2)) { in PHP_METHOD()
1328 PHAR_G(last_phar) = NULL; in PHP_METHOD()
1329 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in PHP_METHOD()
1358 …zend_hash_str_del(&PHAR_G(phar_persist_map), (const char *) phar_obj->archive, sizeof(phar_obj->ar… in PHP_METHOD()
1705 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
1831 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
2099 …if (PHAR_G(manifest_cached) && NULL != (pphar = zend_hash_str_find_ptr(&cached_phars, newpath, pha… in phar_rename_archive()
2105 …if (NULL != (pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), newpath, phar->fname_len)))… in phar_rename_archive()
2149 zend_hash_str_update_ptr(&(PHAR_G(phar_alias_map)), newpath, phar->fname_len, phar); in phar_rename_archive()
2166 …if ((!pphar || phar == pphar) && NULL == zend_hash_str_update_ptr(&(PHAR_G(phar_fname_map)), newpa… in phar_rename_archive()
2175 zend_hash_str_del(&(PHAR_G(phar_fname_map)), newpath, phar->fname_len); in phar_rename_archive()
2213 PHAR_G(last_phar) = NULL; in phar_convert_to_other()
2214 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_convert_to_other()
2332 if (PHAR_G(readonly)) { in PHP_METHOD()
2380 if (!PHAR_G(has_zlib)) { in PHP_METHOD()
2395 if (!PHAR_G(has_bz2)) { in PHP_METHOD()
2490 if (!PHAR_G(has_zlib)) { in PHP_METHOD()
2505 if (!PHAR_G(has_bz2)) { in PHP_METHOD()
2597 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
2678 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
2685 PHAR_G(last_phar) = NULL; in PHP_METHOD()
2686 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in PHP_METHOD()
2702 …if (alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_… in PHP_METHOD()
2722 …if (phar_obj->archive->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_m… in PHP_METHOD()
2723 …zend_hash_str_del(&(PHAR_G(phar_alias_map)), phar_obj->archive->alias, phar_obj->archive->alias_le… in PHP_METHOD()
2747 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), oldalias, oldalias_len, phar_obj->archive); in PHP_METHOD()
2753 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, phar_obj->archive); in PHP_METHOD()
2813 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
2842 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
2941 if (PHAR_G(readonly)) { in PHP_METHOD()
2999 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
3019 PHAR_G(openssl_privatekey) = key; in PHP_METHOD()
3020 PHAR_G(openssl_privatekey_len) = key_len; in PHP_METHOD()
3120 if (!PHAR_G(has_bz2)) { in phar_test_compression()
3126 if (!PHAR_G(has_zlib)) { in phar_test_compression()
3170 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
3187 if (!PHAR_G(has_zlib)) { in PHP_METHOD()
3196 if (!PHAR_G(has_bz2)) { in PHP_METHOD()
3236 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
3278 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
3286 if (!PHAR_G(has_zlib)) { in PHP_METHOD()
3295 if (!PHAR_G(has_bz2)) { in PHP_METHOD()
3352 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
3401 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
3709 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
3746 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
4025 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
4061 if (PHAR_G(readonly) && !phar_obj->archive->is_data) { in PHP_METHOD()
4605 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4694 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4743 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4859 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4888 if (!PHAR_G(has_bz2)) { in PHP_METHOD()
4903 if (!PHAR_G(has_zlib)) { in PHP_METHOD()
4919 if (!PHAR_G(has_zlib)) { in PHP_METHOD()
4934 if (!PHAR_G(has_bz2)) { in PHP_METHOD()
4984 if (PHAR_G(readonly) && !entry_obj->entry->phar->is_data) { in PHP_METHOD()
4996 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_GZ) != 0 && !PHAR_G(has_zlib)) { in PHP_METHOD()
5002 if ((entry_obj->entry->flags & PHAR_ENT_COMPRESSED_BZ2) != 0 && !PHAR_G(has_bz2)) { in PHP_METHOD()