Searched refs:PHAR_G (Results 1 – 9 of 9) sorted by relevance
/PHP-8.1/ext/phar/ |
H A D | func_interceptors.c | 30 if (!PHAR_G(intercepted)) { in PHAR_FUNC() 612 …if (PHAR_G(last_phar) && fname_len - 7 >= PHAR_G(last_phar_name_len) && !memcmp(fname + 7, PHAR_G(… in phar_file_stat() 613 arch = estrndup(PHAR_G(last_phar_name), PHAR_G(last_phar_name_len)); in phar_file_stat() 664 save = PHAR_G(cwd); in phar_file_stat() 669 PHAR_G(cwd) = "/"; in phar_file_stat() 670 PHAR_G(cwd_len) = 0; in phar_file_stat() 674 PHAR_G(cwd) = save; in phar_file_stat() 684 PHAR_G(cwd) = save; in phar_file_stat() 699 PHAR_G(cwd) = save; in phar_file_stat() 980 PHAR_G(cwd) = NULL; in PharFileFunction() [all …]
|
H A D | util.c | 262 … (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_len)… in phar_find_in_include_path() 263 arch = estrndup(PHAR_G(last_phar_name), PHAR_G(last_phar_name_len)); in phar_find_in_include_path() 265 phar = PHAR_G(last_phar); in phar_find_in_include_path() 943 PHAR_G(last_phar) = NULL; in phar_free_alias() 944 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_free_alias() 968 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive() 980 …if (PHAR_G(last_phar)->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_m… in phar_get_archive() 981 …zend_hash_str_del(&(PHAR_G(phar_alias_map)), PHAR_G(last_phar)->alias, PHAR_G(last_phar)->alias_le… in phar_get_archive() 992 …if (alias && alias_len && PHAR_G(last_phar) && alias_len == PHAR_G(last_alias_len) && !memcmp(alia… in phar_get_archive() 993 fd = PHAR_G(last_phar); in phar_get_archive() [all …]
|
H A D | phar.c | 72 PHAR_G(readonly) = ini; in ZEND_INI_MH() 73 if (PHAR_G(request_init) && HT_IS_INITIALIZED(&PHAR_G(phar_fname_map))) { in ZEND_INI_MH() 96 if (!PHAR_G(cache_list) || !(PHAR_G(cache_list)[0])) { in phar_split_cache_list() 118 PHAR_G(persist) = 1; in phar_split_cache_list() 136 PHAR_G(persist) = 0; in phar_split_cache_list() 153 PHAR_G(persist) = 0; in phar_split_cache_list() 256 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_archive_delref() 3502 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_request_initialize() 3524 PHAR_G(cwd) = NULL; in phar_request_initialize() 3564 if (PHAR_G(cwd)) { in PHP_RSHUTDOWN_FUNCTION() [all …]
|
H A D | phar_object.c | 225 PHAR_G(cwd) = NULL; in phar_file_action() 226 PHAR_G(cwd_len) = 0; in phar_file_action() 235 PHAR_G(cwd) = NULL; in phar_file_action() 238 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len)); 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() 276 if (PHAR_G(cwd)) { in phar_file_action() 1018 if (PHAR_G(has_zlib) || PHAR_G(has_bz2)) { in PHP_METHOD() 1329 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in PHP_METHOD() 2214 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_convert_to_other() [all …]
|
H A D | phar_internal.h | 191 #define PHAR_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(phar, v) macro 341 return PHAR_G(cached_fp)[entry->phar->phar_pos].fp; in phar_get_entrypfp() 349 return PHAR_G(cached_fp)[entry->phar->phar_pos].ufp; in phar_get_entrypufp() 359 PHAR_G(cached_fp)[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp() 369 PHAR_G(cached_fp)[entry->phar->phar_pos].ufp = fp; in phar_set_entrypufp() 377 return PHAR_G(cached_fp)[phar->phar_pos].fp; in phar_get_pharfp() 385 return PHAR_G(cached_fp)[phar->phar_pos].ufp; in phar_get_pharufp() 395 PHAR_G(cached_fp)[phar->phar_pos].fp = fp; in phar_set_pharfp() 405 PHAR_G(cached_fp)[phar->phar_pos].ufp = fp; in phar_set_pharufp() 417 data = &(PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos]); in phar_set_fp_type() [all …]
|
H A D | stream.c | 109 …if (PHAR_G(request_init) && HT_IS_INITIALIZED(&PHAR_G(phar_fname_map)) && NULL == (pphar = zend_ha… in phar_parse_url() 112 if (PHAR_G(readonly) && (!pphar || !pphar->is_data)) { in phar_parse_url() 321 PHAR_G(cwd_init) = 1; in phar_wrapper_open_url() 324 PHAR_G(cwd_init) = 0; in phar_wrapper_open_url() 326 PHAR_G(cwd_len) = cwd - entry; in phar_wrapper_open_url() 327 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_wrapper_open_url() 330 PHAR_G(cwd_len) = 0; in phar_wrapper_open_url() 331 PHAR_G(cwd) = NULL; in phar_wrapper_open_url() 690 if (PHAR_G(readonly) && (!pphar || !pphar->is_data)) { in phar_wrapper_unlink() 755 if (PHAR_G(readonly) && (!pfrom || !pfrom->is_data)) { in phar_wrapper_rename() [all …]
|
H A D | tar.c | 241 myphar = (phar_archive_data *) pecalloc(1, sizeof(phar_archive_data), PHAR_G(persist)); in phar_parse_tarfile() 242 myphar->is_persistent = PHAR_G(persist); in phar_parse_tarfile() 619 if (!myphar->is_data && PHAR_G(require_hash) && !myphar->signature) { in phar_parse_tarfile() 648 …if (NULL == (actual = zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len, m… in phar_parse_tarfile() 664 …if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), actual_alias, myphar->alia… in phar_parse_tarfile() 669 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile() 674 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), actual_alias, myphar->alias_len, myphar); in phar_parse_tarfile() 679 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len))) { in phar_parse_tarfile() 684 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile() 688 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, myphar); in phar_parse_tarfile()
|
H A D | zip.c | 251 mydata = pecalloc(1, sizeof(phar_archive_data), PHAR_G(persist)); in phar_parse_zipfile() 252 mydata->is_persistent = PHAR_G(persist); in phar_parse_zipfile() 498 if (!PHAR_G(has_zlib)) { in phar_parse_zipfile() 505 if (!PHAR_G(has_bz2)) { in phar_parse_zipfile() 697 if (!mydata->is_data && PHAR_G(require_hash) && !mydata->signature) { in phar_parse_zipfile() 703 zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len, mydata); in phar_parse_zipfile() 713 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() 725 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() 736 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), mydata->alias, mydata->alias_len, mydata); in phar_parse_zipfile() 746 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() [all …]
|
H A D | dirstream.c | 419 if (PHAR_G(readonly) && (!phar || !phar->is_data)) { in phar_wrapper_mkdir() 554 if (PHAR_G(readonly) && (!phar || !phar->is_data)) { in phar_wrapper_rmdir()
|
Completed in 74 milliseconds