Lines Matching refs:PHAR_G
32 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
36 if ((PHAR_G(phar_fname_map.u.flags) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map)))) in PHAR_FUNC()
89 PHAR_G(orig_opendir)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHAR_FUNC()
105 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
109 if ((PHAR_G(phar_fname_map.u.flags) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map)))) in PHAR_FUNC()
224 PHAR_G(orig_file_get_contents)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHAR_FUNC()
238 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
242 if ((PHAR_G(phar_fname_map.u.flags) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map)))) in PHAR_FUNC()
324 PHAR_G(orig_readfile)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHAR_FUNC()
338 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
342 if ((PHAR_G(phar_fname_map.u.flags) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map)))) in PHAR_FUNC()
427 PHAR_G(orig_fopen)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHAR_FUNC()
610 …if (PHAR_G(last_phar) && fname_len - 7 >= PHAR_G(last_phar_name_len) && !memcmp(fname + 7, PHAR_G(… in phar_file_stat()
611 arch = estrndup(PHAR_G(last_phar_name), PHAR_G(last_phar_name_len)); in phar_file_stat()
612 arch_len = PHAR_G(last_phar_name_len); in phar_file_stat()
616 phar = PHAR_G(last_phar); in phar_file_stat()
662 save = PHAR_G(cwd); in phar_file_stat()
663 save_len = PHAR_G(cwd_len); in phar_file_stat()
667 PHAR_G(cwd) = "/"; in phar_file_stat()
668 PHAR_G(cwd_len) = 0; in phar_file_stat()
672 PHAR_G(cwd) = save; in phar_file_stat()
673 PHAR_G(cwd_len) = save_len; in phar_file_stat()
682 PHAR_G(cwd) = save; in phar_file_stat()
683 PHAR_G(cwd_len) = save_len; in phar_file_stat()
697 PHAR_G(cwd) = save; in phar_file_stat()
698 PHAR_G(cwd_len) = save_len; in phar_file_stat()
763 if (!PHAR_G(intercepted)) { \
764 PHAR_G(orig)(INTERNAL_FUNCTION_PARAM_PASSTHRU); \
773 phar_file_stat(filename, filename_len, funcnum, PHAR_G(orig), INTERNAL_FUNCTION_PARAM_PASSTHRU); \
853 if (!PHAR_G(intercepted)) { in PharFileFunction()
857 if ((PHAR_G(phar_fname_map.u.flags) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map)))) in PharFileFunction()
910 PHAR_G(orig_is_file)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PharFileFunction()
920 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
924 if ((PHAR_G(phar_fname_map.u.flags) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map)))) in PHAR_FUNC()
975 PHAR_G(orig_is_link)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHAR_FUNC()
993 if (!PHAR_G(request_init)) { in PharFileFunction()
994 PHAR_G(cwd) = NULL; in PharFileFunction()
995 PHAR_G(cwd_len) = 0; in PharFileFunction()
997 PHAR_G(intercepted) = 1; in PharFileFunction()
1004 PHAR_G(intercepted) = 0; in phar_release_functions()
1010 PHAR_G(orig_##func) = NULL; \
1012 PHAR_G(orig_##func) = orig->internal_function.handler; \
1042 PHAR_G(intercepted) = 0; in phar_intercept_functions_init()
1048 …if (PHAR_G(orig_##func) && NULL != (orig = zend_hash_str_find_ptr(CG(function_table), #func, sizeo…
1049 orig->internal_function.handler = PHAR_G(orig_##func); \
1051 PHAR_G(orig_##func) = NULL;
1078 PHAR_G(intercepted) = 0; in phar_intercept_functions_shutdown()
1109 phar_orig_functions.orig_fopen = PHAR_G(orig_fopen); in phar_save_orig_functions()
1110 phar_orig_functions.orig_file_get_contents = PHAR_G(orig_file_get_contents); in phar_save_orig_functions()
1111 phar_orig_functions.orig_is_file = PHAR_G(orig_is_file); in phar_save_orig_functions()
1112 phar_orig_functions.orig_is_link = PHAR_G(orig_is_link); in phar_save_orig_functions()
1113 phar_orig_functions.orig_is_dir = PHAR_G(orig_is_dir); in phar_save_orig_functions()
1114 phar_orig_functions.orig_opendir = PHAR_G(orig_opendir); in phar_save_orig_functions()
1115 phar_orig_functions.orig_file_exists = PHAR_G(orig_file_exists); in phar_save_orig_functions()
1116 phar_orig_functions.orig_fileperms = PHAR_G(orig_fileperms); in phar_save_orig_functions()
1117 phar_orig_functions.orig_fileinode = PHAR_G(orig_fileinode); in phar_save_orig_functions()
1118 phar_orig_functions.orig_filesize = PHAR_G(orig_filesize); in phar_save_orig_functions()
1119 phar_orig_functions.orig_fileowner = PHAR_G(orig_fileowner); in phar_save_orig_functions()
1120 phar_orig_functions.orig_filegroup = PHAR_G(orig_filegroup); in phar_save_orig_functions()
1121 phar_orig_functions.orig_fileatime = PHAR_G(orig_fileatime); in phar_save_orig_functions()
1122 phar_orig_functions.orig_filemtime = PHAR_G(orig_filemtime); in phar_save_orig_functions()
1123 phar_orig_functions.orig_filectime = PHAR_G(orig_filectime); in phar_save_orig_functions()
1124 phar_orig_functions.orig_filetype = PHAR_G(orig_filetype); in phar_save_orig_functions()
1125 phar_orig_functions.orig_is_writable = PHAR_G(orig_is_writable); in phar_save_orig_functions()
1126 phar_orig_functions.orig_is_readable = PHAR_G(orig_is_readable); in phar_save_orig_functions()
1127 phar_orig_functions.orig_is_executable = PHAR_G(orig_is_executable); in phar_save_orig_functions()
1128 phar_orig_functions.orig_lstat = PHAR_G(orig_lstat); in phar_save_orig_functions()
1129 phar_orig_functions.orig_readfile = PHAR_G(orig_readfile); in phar_save_orig_functions()
1130 phar_orig_functions.orig_stat = PHAR_G(orig_stat); in phar_save_orig_functions()
1136 PHAR_G(orig_fopen) = phar_orig_functions.orig_fopen; in phar_restore_orig_functions()
1137 PHAR_G(orig_file_get_contents) = phar_orig_functions.orig_file_get_contents; in phar_restore_orig_functions()
1138 PHAR_G(orig_is_file) = phar_orig_functions.orig_is_file; in phar_restore_orig_functions()
1139 PHAR_G(orig_is_link) = phar_orig_functions.orig_is_link; in phar_restore_orig_functions()
1140 PHAR_G(orig_is_dir) = phar_orig_functions.orig_is_dir; in phar_restore_orig_functions()
1141 PHAR_G(orig_opendir) = phar_orig_functions.orig_opendir; in phar_restore_orig_functions()
1142 PHAR_G(orig_file_exists) = phar_orig_functions.orig_file_exists; in phar_restore_orig_functions()
1143 PHAR_G(orig_fileperms) = phar_orig_functions.orig_fileperms; in phar_restore_orig_functions()
1144 PHAR_G(orig_fileinode) = phar_orig_functions.orig_fileinode; in phar_restore_orig_functions()
1145 PHAR_G(orig_filesize) = phar_orig_functions.orig_filesize; in phar_restore_orig_functions()
1146 PHAR_G(orig_fileowner) = phar_orig_functions.orig_fileowner; in phar_restore_orig_functions()
1147 PHAR_G(orig_filegroup) = phar_orig_functions.orig_filegroup; in phar_restore_orig_functions()
1148 PHAR_G(orig_fileatime) = phar_orig_functions.orig_fileatime; in phar_restore_orig_functions()
1149 PHAR_G(orig_filemtime) = phar_orig_functions.orig_filemtime; in phar_restore_orig_functions()
1150 PHAR_G(orig_filectime) = phar_orig_functions.orig_filectime; in phar_restore_orig_functions()
1151 PHAR_G(orig_filetype) = phar_orig_functions.orig_filetype; in phar_restore_orig_functions()
1152 PHAR_G(orig_is_writable) = phar_orig_functions.orig_is_writable; in phar_restore_orig_functions()
1153 PHAR_G(orig_is_readable) = phar_orig_functions.orig_is_readable; in phar_restore_orig_functions()
1154 PHAR_G(orig_is_executable) = phar_orig_functions.orig_is_executable; in phar_restore_orig_functions()
1155 PHAR_G(orig_lstat) = phar_orig_functions.orig_lstat; in phar_restore_orig_functions()
1156 PHAR_G(orig_readfile) = phar_orig_functions.orig_readfile; in phar_restore_orig_functions()
1157 PHAR_G(orig_stat) = phar_orig_functions.orig_stat; in phar_restore_orig_functions()