Home
last modified time | relevance | path

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

/PHP-5.5/ext/phar/
H A Dfunc_interceptors.c32 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
633 …if (PHAR_G(last_phar) && fname_len - 7 >= PHAR_G(last_phar_name_len) && !memcmp(fname + 7, PHAR_G(… in phar_file_stat()
634 arch = estrndup(PHAR_G(last_phar_name), PHAR_G(last_phar_name_len)); in phar_file_stat()
691 save = PHAR_G(cwd); in phar_file_stat()
696 PHAR_G(cwd) = "/"; in phar_file_stat()
697 PHAR_G(cwd_len) = 0; in phar_file_stat()
701 PHAR_G(cwd) = save; in phar_file_stat()
711 PHAR_G(cwd) = save; in phar_file_stat()
732 PHAR_G(cwd) = save; in phar_file_stat()
1041 PHAR_G(cwd) = NULL; in PharFileFunction()
[all …]
H A Dutil.c272 … (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_len)… 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()
955 PHAR_G(last_phar) = NULL; in phar_free_alias()
956 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_free_alias()
981 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive()
1005 …if (alias && alias_len && PHAR_G(last_phar) && alias_len == PHAR_G(last_alias_len) && !memcmp(alia… in phar_get_archive()
1006 fd = PHAR_G(last_phar); in phar_get_archive()
1030 PHAR_G(last_phar) = fd; in phar_get_archive()
1069 PHAR_G(last_phar) = fd; in phar_get_archive()
[all …]
H A Dphar_object.c258 PHAR_G(cwd) = NULL; in phar_file_action()
259 PHAR_G(cwd_len) = 0; in phar_file_action()
267 PHAR_G(cwd) = NULL; in phar_file_action()
270 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len)); in phar_file_action()
273 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_file_action()
298 if (PHAR_G(cwd)) { in phar_file_action()
314 if (PHAR_G(cwd)) { in phar_file_action()
1057 if (PHAR_G(has_zlib) || PHAR_G(has_bz2)) { in PHP_METHOD()
1376 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in PHP_METHOD()
2227 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_convert_to_other()
[all …]
H A Dphar.c84 PHAR_G(readonly) = ini; in ZEND_INI_MH()
286 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_archive_delref()
626 if (PHAR_G(persist)) {
3522 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL;
3546 PHAR_G(cwd) = NULL;
3547 PHAR_G(cwd_len) = 0;
3548 PHAR_G(cwd_init) = 0;
3586 if (PHAR_G(cwd)) {
3587 efree(PHAR_G(cwd));
3590 PHAR_G(cwd) = NULL;
[all …]
H A Dstream.c109 if (PHAR_G(readonly) && (!pphar || !(*pphar)->is_data)) { in phar_parse_url()
319 if (!PHAR_G(cwd_init) && options & STREAM_OPEN_FOR_INCLUDE) { in phar_wrapper_open_url()
322 PHAR_G(cwd_init) = 1; in phar_wrapper_open_url()
325 PHAR_G(cwd_init) = 0; in phar_wrapper_open_url()
327 PHAR_G(cwd_len) = cwd - entry; in phar_wrapper_open_url()
328 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_wrapper_open_url()
331 PHAR_G(cwd_len) = 0; in phar_wrapper_open_url()
332 PHAR_G(cwd) = NULL; in phar_wrapper_open_url()
722 if (PHAR_G(readonly) && (!pphar || !(*pphar)->is_data)) { in phar_wrapper_unlink()
787 if (PHAR_G(readonly) && (!pfrom || !pfrom->is_data)) { in phar_wrapper_rename()
[all …]
H A Dphar_internal.h217 # define PHAR_G(v) TSRMG(phar_globals_id, zend_phar_globals *, v) macro
220 # define PHAR_G(v) (phar_globals.v)
H A Ddirstream.c454 if (PHAR_G(readonly) && (!phar || !phar->is_data)) { in phar_wrapper_mkdir()
591 if (PHAR_G(readonly) && (!phar || !phar->is_data)) { in phar_wrapper_rmdir()
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()
479 if (!PHAR_G(has_zlib)) { in phar_parse_zipfile()
486 if (!PHAR_G(has_bz2)) { in phar_parse_zipfile()
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()

Completed in 92 milliseconds