Searched refs:PHAR_G (Results 1 – 9 of 9) sorted by relevance
/PHP-8.3/ext/phar/ |
H A D | func_interceptors.c | 30 if (!PHAR_G(intercepted)) { in PHAR_FUNC() 504 …if (PHAR_G(last_phar) && ZSTR_LEN(fname) - 7 >= PHAR_G(last_phar_name_len) && !memcmp(ZSTR_VAL(fna… in phar_file_stat() 505 arch = estrndup(PHAR_G(last_phar_name), PHAR_G(last_phar_name_len)); in phar_file_stat() 556 save = PHAR_G(cwd); in phar_file_stat() 561 PHAR_G(cwd) = "/"; in phar_file_stat() 562 PHAR_G(cwd_len) = 0; in phar_file_stat() 566 PHAR_G(cwd) = save; in phar_file_stat() 576 PHAR_G(cwd) = save; in phar_file_stat() 591 PHAR_G(cwd) = save; in phar_file_stat() 870 PHAR_G(cwd) = NULL; in PharFileFunction() [all …]
|
H A D | util.c | 268 PHAR_G(last_phar) in phar_find_in_include_path() 273 arch = estrndup(PHAR_G(last_phar_name), PHAR_G(last_phar_name_len)); in phar_find_in_include_path() 275 phar = PHAR_G(last_phar); in phar_find_in_include_path() 953 PHAR_G(last_phar) = NULL; in phar_free_alias() 954 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_free_alias() 978 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive() 990 …if (PHAR_G(last_phar)->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_m… in phar_get_archive() 991 …zend_hash_str_del(&(PHAR_G(phar_alias_map)), PHAR_G(last_phar)->alias, PHAR_G(last_phar)->alias_le… in phar_get_archive() 1002 …if (alias && alias_len && PHAR_G(last_phar) && alias_len == PHAR_G(last_alias_len) && !memcmp(alia… in phar_get_archive() 1003 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() 3494 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_request_initialize() 3516 PHAR_G(cwd) = NULL; in phar_request_initialize() 3556 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() 1028 if (PHAR_G(has_zlib) || PHAR_G(has_bz2)) { in PHP_METHOD() 1342 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in PHP_METHOD() 2231 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() 332 PHAR_G(cwd_init) = 1; in phar_wrapper_open_url() 335 PHAR_G(cwd_init) = 0; in phar_wrapper_open_url() 337 PHAR_G(cwd_len) = cwd - entry; in phar_wrapper_open_url() 338 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_wrapper_open_url() 341 PHAR_G(cwd_len) = 0; in phar_wrapper_open_url() 342 PHAR_G(cwd) = NULL; in phar_wrapper_open_url() 701 if (PHAR_G(readonly) && (!pphar || !pphar->is_data)) { in phar_wrapper_unlink() 766 if (PHAR_G(readonly) && (!pfrom || !pfrom->is_data)) { in phar_wrapper_rename() [all …]
|
H A D | tar.c | 234 myphar = (phar_archive_data *) pecalloc(1, sizeof(phar_archive_data), PHAR_G(persist)); in phar_parse_tarfile() 235 myphar->is_persistent = PHAR_G(persist); in phar_parse_tarfile() 616 if (!myphar->is_data && PHAR_G(require_hash) && !myphar->signature) { in phar_parse_tarfile() 645 …if (NULL == (actual = zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len, m… in phar_parse_tarfile() 661 …if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), actual_alias, myphar->alia… in phar_parse_tarfile() 666 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile() 671 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), actual_alias, myphar->alias_len, myphar); in phar_parse_tarfile() 676 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len))) { in phar_parse_tarfile() 681 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile() 685 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() 531 if (!PHAR_G(has_zlib)) { in phar_parse_zipfile() 538 if (!PHAR_G(has_bz2)) { in phar_parse_zipfile() 719 if (!mydata->is_data && PHAR_G(require_hash) && !mydata->signature) { in phar_parse_zipfile() 725 zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len, mydata); in phar_parse_zipfile() 735 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() 747 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() 758 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), mydata->alias, mydata->alias_len, mydata); in phar_parse_zipfile() 768 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 61 milliseconds