Lines Matching refs:PHAR_G
30 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
34 …if ((HT_IS_INITIALIZED(&PHAR_G(phar_fname_map)) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map… in PHAR_FUNC()
86 PHAR_G(orig_opendir)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHAR_FUNC()
169 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
173 …if ((HT_IS_INITIALIZED(&PHAR_G(phar_fname_map)) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map… in PHAR_FUNC()
231 PHAR_G(orig_file_get_contents)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHAR_FUNC()
242 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
246 …if ((HT_IS_INITIALIZED(&PHAR_G(phar_fname_map)) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map… in PHAR_FUNC()
274 PHAR_G(orig_readfile)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHAR_FUNC()
288 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
292 …if ((HT_IS_INITIALIZED(&PHAR_G(phar_fname_map)) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map… in PHAR_FUNC()
322 PHAR_G(orig_fopen)(INTERNAL_FUNCTION_PARAM_PASSTHRU); 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()
506 arch_len = PHAR_G(last_phar_name_len); in phar_file_stat()
510 phar = PHAR_G(last_phar); in phar_file_stat()
556 save = PHAR_G(cwd); in phar_file_stat()
557 save_len = PHAR_G(cwd_len); 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()
567 PHAR_G(cwd_len) = save_len; in phar_file_stat()
576 PHAR_G(cwd) = save; in phar_file_stat()
577 PHAR_G(cwd_len) = save_len; in phar_file_stat()
591 PHAR_G(cwd) = save; in phar_file_stat()
592 PHAR_G(cwd_len) = save_len; in phar_file_stat()
657 if (!PHAR_G(intercepted)) { \
658 PHAR_G(orig)(INTERNAL_FUNCTION_PARAM_PASSTHRU); \
667 phar_file_stat(filename, filename_len, funcnum, PHAR_G(orig), INTERNAL_FUNCTION_PARAM_PASSTHRU); \
733 if (!PHAR_G(intercepted)) { in PharFileFunction()
737 …if ((HT_IS_INITIALIZED(&PHAR_G(phar_fname_map)) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map… in PharFileFunction()
789 PHAR_G(orig_is_file)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PharFileFunction()
799 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
803 …if ((HT_IS_INITIALIZED(&PHAR_G(phar_fname_map)) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map… in PHAR_FUNC()
853 PHAR_G(orig_is_link)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHAR_FUNC()
869 if (!PHAR_G(request_init)) { in PharFileFunction()
870 PHAR_G(cwd) = NULL; in PharFileFunction()
871 PHAR_G(cwd_len) = 0; in PharFileFunction()
873 PHAR_G(intercepted) = 1; in PharFileFunction()
880 PHAR_G(intercepted) = 0; in phar_release_functions()
886 PHAR_G(orig_##func) = NULL; \
888 PHAR_G(orig_##func) = orig->internal_function.handler; \
918 PHAR_G(intercepted) = 0; in phar_intercept_functions_init()
924 …if (PHAR_G(orig_##func) && NULL != (orig = zend_hash_str_find_ptr(CG(function_table), #func, sizeo…
925 orig->internal_function.handler = PHAR_G(orig_##func); \
927 PHAR_G(orig_##func) = NULL;
954 PHAR_G(intercepted) = 0; in phar_intercept_functions_shutdown()
985 phar_orig_functions.orig_fopen = PHAR_G(orig_fopen); in phar_save_orig_functions()
986 phar_orig_functions.orig_file_get_contents = PHAR_G(orig_file_get_contents); in phar_save_orig_functions()
987 phar_orig_functions.orig_is_file = PHAR_G(orig_is_file); in phar_save_orig_functions()
988 phar_orig_functions.orig_is_link = PHAR_G(orig_is_link); in phar_save_orig_functions()
989 phar_orig_functions.orig_is_dir = PHAR_G(orig_is_dir); in phar_save_orig_functions()
990 phar_orig_functions.orig_opendir = PHAR_G(orig_opendir); in phar_save_orig_functions()
991 phar_orig_functions.orig_file_exists = PHAR_G(orig_file_exists); in phar_save_orig_functions()
992 phar_orig_functions.orig_fileperms = PHAR_G(orig_fileperms); in phar_save_orig_functions()
993 phar_orig_functions.orig_fileinode = PHAR_G(orig_fileinode); in phar_save_orig_functions()
994 phar_orig_functions.orig_filesize = PHAR_G(orig_filesize); in phar_save_orig_functions()
995 phar_orig_functions.orig_fileowner = PHAR_G(orig_fileowner); in phar_save_orig_functions()
996 phar_orig_functions.orig_filegroup = PHAR_G(orig_filegroup); in phar_save_orig_functions()
997 phar_orig_functions.orig_fileatime = PHAR_G(orig_fileatime); in phar_save_orig_functions()
998 phar_orig_functions.orig_filemtime = PHAR_G(orig_filemtime); in phar_save_orig_functions()
999 phar_orig_functions.orig_filectime = PHAR_G(orig_filectime); in phar_save_orig_functions()
1000 phar_orig_functions.orig_filetype = PHAR_G(orig_filetype); in phar_save_orig_functions()
1001 phar_orig_functions.orig_is_writable = PHAR_G(orig_is_writable); in phar_save_orig_functions()
1002 phar_orig_functions.orig_is_readable = PHAR_G(orig_is_readable); in phar_save_orig_functions()
1003 phar_orig_functions.orig_is_executable = PHAR_G(orig_is_executable); in phar_save_orig_functions()
1004 phar_orig_functions.orig_lstat = PHAR_G(orig_lstat); in phar_save_orig_functions()
1005 phar_orig_functions.orig_readfile = PHAR_G(orig_readfile); in phar_save_orig_functions()
1006 phar_orig_functions.orig_stat = PHAR_G(orig_stat); in phar_save_orig_functions()
1012 PHAR_G(orig_fopen) = phar_orig_functions.orig_fopen; in phar_restore_orig_functions()
1013 PHAR_G(orig_file_get_contents) = phar_orig_functions.orig_file_get_contents; in phar_restore_orig_functions()
1014 PHAR_G(orig_is_file) = phar_orig_functions.orig_is_file; in phar_restore_orig_functions()
1015 PHAR_G(orig_is_link) = phar_orig_functions.orig_is_link; in phar_restore_orig_functions()
1016 PHAR_G(orig_is_dir) = phar_orig_functions.orig_is_dir; in phar_restore_orig_functions()
1017 PHAR_G(orig_opendir) = phar_orig_functions.orig_opendir; in phar_restore_orig_functions()
1018 PHAR_G(orig_file_exists) = phar_orig_functions.orig_file_exists; in phar_restore_orig_functions()
1019 PHAR_G(orig_fileperms) = phar_orig_functions.orig_fileperms; in phar_restore_orig_functions()
1020 PHAR_G(orig_fileinode) = phar_orig_functions.orig_fileinode; in phar_restore_orig_functions()
1021 PHAR_G(orig_filesize) = phar_orig_functions.orig_filesize; in phar_restore_orig_functions()
1022 PHAR_G(orig_fileowner) = phar_orig_functions.orig_fileowner; in phar_restore_orig_functions()
1023 PHAR_G(orig_filegroup) = phar_orig_functions.orig_filegroup; in phar_restore_orig_functions()
1024 PHAR_G(orig_fileatime) = phar_orig_functions.orig_fileatime; in phar_restore_orig_functions()
1025 PHAR_G(orig_filemtime) = phar_orig_functions.orig_filemtime; in phar_restore_orig_functions()
1026 PHAR_G(orig_filectime) = phar_orig_functions.orig_filectime; in phar_restore_orig_functions()
1027 PHAR_G(orig_filetype) = phar_orig_functions.orig_filetype; in phar_restore_orig_functions()
1028 PHAR_G(orig_is_writable) = phar_orig_functions.orig_is_writable; in phar_restore_orig_functions()
1029 PHAR_G(orig_is_readable) = phar_orig_functions.orig_is_readable; in phar_restore_orig_functions()
1030 PHAR_G(orig_is_executable) = phar_orig_functions.orig_is_executable; in phar_restore_orig_functions()
1031 PHAR_G(orig_lstat) = phar_orig_functions.orig_lstat; in phar_restore_orig_functions()
1032 PHAR_G(orig_readfile) = phar_orig_functions.orig_readfile; in phar_restore_orig_functions()
1033 PHAR_G(orig_stat) = phar_orig_functions.orig_stat; in phar_restore_orig_functions()