Home
last modified time | relevance | path

Searched refs:PHAR_G (Results 1 – 9 of 9) sorted by relevance

/PHP-7.1/ext/phar/
H A Dfunc_interceptors.c32 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
630 …if (PHAR_G(last_phar) && fname_len - 7 >= PHAR_G(last_phar_name_len) && !memcmp(fname + 7, PHAR_G(… in phar_file_stat()
631 arch = estrndup(PHAR_G(last_phar_name), PHAR_G(last_phar_name_len)); in phar_file_stat()
688 save = PHAR_G(cwd); in phar_file_stat()
693 PHAR_G(cwd) = "/"; in phar_file_stat()
694 PHAR_G(cwd_len) = 0; in phar_file_stat()
698 PHAR_G(cwd) = save; in phar_file_stat()
708 PHAR_G(cwd) = save; in phar_file_stat()
729 PHAR_G(cwd) = save; in phar_file_stat()
1038 PHAR_G(cwd) = NULL; in PharFileFunction()
[all …]
H A Dutil.c266 … (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_len)… in phar_find_in_include_path()
267 arch = estrndup(PHAR_G(last_phar_name), PHAR_G(last_phar_name_len)); in phar_find_in_include_path()
269 phar = PHAR_G(last_phar); in phar_find_in_include_path()
947 PHAR_G(last_phar) = NULL; in phar_free_alias()
948 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_free_alias()
972 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive()
984 …if (PHAR_G(last_phar)->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_m… in phar_get_archive()
985 …zend_hash_str_del(&(PHAR_G(phar_alias_map)), PHAR_G(last_phar)->alias, PHAR_G(last_phar)->alias_le… in phar_get_archive()
996 …if (alias && alias_len && PHAR_G(last_phar) && alias_len == PHAR_G(last_alias_len) && !memcmp(alia… in phar_get_archive()
997 fd = PHAR_G(last_phar); in phar_get_archive()
[all …]
H A Dphar.c84 PHAR_G(readonly) = ini; in ZEND_INI_MH()
85 if (PHAR_G(request_init) && PHAR_G(phar_fname_map.u.flags)) { in ZEND_INI_MH()
108 if (!PHAR_G(cache_list) || !(PHAR_G(cache_list)[0])) { in phar_split_cache_list()
130 PHAR_G(persist) = 1; in phar_split_cache_list()
145 PHAR_G(persist) = 0; in phar_split_cache_list()
169 PHAR_G(persist) = 0; in phar_split_cache_list()
285 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_archive_delref()
3470 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL;
3494 PHAR_G(cwd) = NULL;
3534 if (PHAR_G(cwd)) {
[all …]
H A Dphar_internal.h196 #define PHAR_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(phar, v) macro
338 return PHAR_G(cached_fp)[entry->phar->phar_pos].fp; in phar_get_entrypfp()
346 return PHAR_G(cached_fp)[entry->phar->phar_pos].ufp; in phar_get_entrypufp()
356 PHAR_G(cached_fp)[entry->phar->phar_pos].fp = fp; in phar_set_entrypfp()
366 PHAR_G(cached_fp)[entry->phar->phar_pos].ufp = fp; in phar_set_entrypufp()
374 return PHAR_G(cached_fp)[phar->phar_pos].fp; in phar_get_pharfp()
382 return PHAR_G(cached_fp)[phar->phar_pos].ufp; in phar_get_pharufp()
392 PHAR_G(cached_fp)[phar->phar_pos].fp = fp; in phar_set_pharfp()
402 PHAR_G(cached_fp)[phar->phar_pos].ufp = fp; in phar_set_pharufp()
414 data = &(PHAR_G(cached_fp)[entry->phar->phar_pos].manifest[entry->manifest_pos]); in phar_set_fp_type()
[all …]
H A Dphar_object.c230 PHAR_G(cwd) = NULL; in phar_file_action()
231 PHAR_G(cwd_len) = 0; in phar_file_action()
240 PHAR_G(cwd) = NULL; in phar_file_action()
243 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len)); in phar_file_action()
246 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_file_action()
270 if (PHAR_G(cwd)) { in phar_file_action()
282 if (PHAR_G(cwd)) { in phar_file_action()
1059 if (PHAR_G(has_zlib) || PHAR_G(has_bz2)) { in PHP_METHOD()
1385 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in PHP_METHOD()
2247 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_convert_to_other()
[all …]
H A Dstream.c107 …if (PHAR_G(request_init) && PHAR_G(phar_fname_map.u.flags) && NULL == (pphar = zend_hash_str_find_… in phar_parse_url()
110 if (PHAR_G(readonly) && (!pphar || !pphar->is_data)) { in phar_parse_url()
323 PHAR_G(cwd_init) = 1; in phar_wrapper_open_url()
326 PHAR_G(cwd_init) = 0; in phar_wrapper_open_url()
328 PHAR_G(cwd_len) = cwd - entry; in phar_wrapper_open_url()
329 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_wrapper_open_url()
332 PHAR_G(cwd_len) = 0; in phar_wrapper_open_url()
333 PHAR_G(cwd) = NULL; in phar_wrapper_open_url()
710 if (PHAR_G(readonly) && (!pphar || !pphar->is_data)) { in phar_wrapper_unlink()
775 if (PHAR_G(readonly) && (!pfrom || !pfrom->is_data)) { in phar_wrapper_rename()
[all …]
H A Dtar.c236 myphar = (phar_archive_data *) pecalloc(1, sizeof(phar_archive_data), PHAR_G(persist)); in phar_parse_tarfile()
237 myphar->is_persistent = PHAR_G(persist); in phar_parse_tarfile()
602 if (!myphar->is_data && PHAR_G(require_hash) && !myphar->signature) { in phar_parse_tarfile()
631 …if (NULL == (actual = zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len, m… in phar_parse_tarfile()
647 …if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), actual_alias, myphar->alia… in phar_parse_tarfile()
652 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile()
657 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), actual_alias, myphar->alias_len, myphar); in phar_parse_tarfile()
662 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len))) { in phar_parse_tarfile()
667 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)), alias, alias_len, myphar); in phar_parse_tarfile()
H A Dzip.c221 mydata = pecalloc(1, sizeof(phar_archive_data), PHAR_G(persist)); in phar_parse_zipfile()
222 mydata->is_persistent = PHAR_G(persist); in phar_parse_zipfile()
466 if (!PHAR_G(has_zlib)) { in phar_parse_zipfile()
473 if (!PHAR_G(has_bz2)) { in phar_parse_zipfile()
673 zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len, mydata); in phar_parse_zipfile()
683 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile()
695 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile()
706 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), actual_alias, mydata->alias_len, mydata); in phar_parse_zipfile()
711 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len))) { in phar_parse_zipfile()
716 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile()
[all …]
H A Ddirstream.c433 if (PHAR_G(readonly) && (!phar || !phar->is_data)) { in phar_wrapper_mkdir()
568 if (PHAR_G(readonly) && (!phar || !phar->is_data)) { in phar_wrapper_rmdir()

Completed in 60 milliseconds