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()
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()
632 arch_len = PHAR_G(last_phar_name_len); in phar_file_stat()
636 phar = PHAR_G(last_phar); in phar_file_stat()
688 save = PHAR_G(cwd); in phar_file_stat()
689 save_len = PHAR_G(cwd_len); 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()
699 PHAR_G(cwd_len) = save_len; in phar_file_stat()
708 PHAR_G(cwd) = save; in phar_file_stat()
709 PHAR_G(cwd_len) = save_len; in phar_file_stat()
729 PHAR_G(cwd) = save; in phar_file_stat()
730 PHAR_G(cwd_len) = save_len; in phar_file_stat()
807 if (!PHAR_G(intercepted)) { \
808 PHAR_G(orig)(INTERNAL_FUNCTION_PARAM_PASSTHRU); \
817 …phar_file_stat(filename, (php_stat_len) filename_len, funcnum, PHAR_G(orig), INTERNAL_FUNCTION_PAR…
897 if (!PHAR_G(intercepted)) { in PharFileFunction()
901 if ((PHAR_G(phar_fname_map.u.flags) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map)))) in PharFileFunction()
954 PHAR_G(orig_is_file)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PharFileFunction()
964 if (!PHAR_G(intercepted)) { in PHAR_FUNC()
968 if ((PHAR_G(phar_fname_map.u.flags) && !zend_hash_num_elements(&(PHAR_G(phar_fname_map)))) in PHAR_FUNC()
1019 PHAR_G(orig_is_link)(INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHAR_FUNC()
1037 if (!PHAR_G(request_init)) { in PharFileFunction()
1038 PHAR_G(cwd) = NULL; in PharFileFunction()
1039 PHAR_G(cwd_len) = 0; in PharFileFunction()
1041 PHAR_G(intercepted) = 1; in PharFileFunction()
1048 PHAR_G(intercepted) = 0; in phar_release_functions()
1054 PHAR_G(orig_##func) = NULL; \
1056 PHAR_G(orig_##func) = orig->internal_function.handler; \
1086 PHAR_G(intercepted) = 0; in phar_intercept_functions_init()
1092 …if (PHAR_G(orig_##func) && NULL != (orig = zend_hash_str_find_ptr(CG(function_table), #func, sizeo…
1093 orig->internal_function.handler = PHAR_G(orig_##func); \
1095 PHAR_G(orig_##func) = NULL;
1122 PHAR_G(intercepted) = 0; in phar_intercept_functions_shutdown()
1153 phar_orig_functions.orig_fopen = PHAR_G(orig_fopen); in phar_save_orig_functions()
1154 phar_orig_functions.orig_file_get_contents = PHAR_G(orig_file_get_contents); in phar_save_orig_functions()
1155 phar_orig_functions.orig_is_file = PHAR_G(orig_is_file); in phar_save_orig_functions()
1156 phar_orig_functions.orig_is_link = PHAR_G(orig_is_link); in phar_save_orig_functions()
1157 phar_orig_functions.orig_is_dir = PHAR_G(orig_is_dir); in phar_save_orig_functions()
1158 phar_orig_functions.orig_opendir = PHAR_G(orig_opendir); in phar_save_orig_functions()
1159 phar_orig_functions.orig_file_exists = PHAR_G(orig_file_exists); in phar_save_orig_functions()
1160 phar_orig_functions.orig_fileperms = PHAR_G(orig_fileperms); in phar_save_orig_functions()
1161 phar_orig_functions.orig_fileinode = PHAR_G(orig_fileinode); in phar_save_orig_functions()
1162 phar_orig_functions.orig_filesize = PHAR_G(orig_filesize); in phar_save_orig_functions()
1163 phar_orig_functions.orig_fileowner = PHAR_G(orig_fileowner); in phar_save_orig_functions()
1164 phar_orig_functions.orig_filegroup = PHAR_G(orig_filegroup); in phar_save_orig_functions()
1165 phar_orig_functions.orig_fileatime = PHAR_G(orig_fileatime); in phar_save_orig_functions()
1166 phar_orig_functions.orig_filemtime = PHAR_G(orig_filemtime); in phar_save_orig_functions()
1167 phar_orig_functions.orig_filectime = PHAR_G(orig_filectime); in phar_save_orig_functions()
1168 phar_orig_functions.orig_filetype = PHAR_G(orig_filetype); in phar_save_orig_functions()
1169 phar_orig_functions.orig_is_writable = PHAR_G(orig_is_writable); in phar_save_orig_functions()
1170 phar_orig_functions.orig_is_readable = PHAR_G(orig_is_readable); in phar_save_orig_functions()
1171 phar_orig_functions.orig_is_executable = PHAR_G(orig_is_executable); in phar_save_orig_functions()
1172 phar_orig_functions.orig_lstat = PHAR_G(orig_lstat); in phar_save_orig_functions()
1173 phar_orig_functions.orig_readfile = PHAR_G(orig_readfile); in phar_save_orig_functions()
1174 phar_orig_functions.orig_stat = PHAR_G(orig_stat); in phar_save_orig_functions()
1180 PHAR_G(orig_fopen) = phar_orig_functions.orig_fopen; in phar_restore_orig_functions()
1181 PHAR_G(orig_file_get_contents) = phar_orig_functions.orig_file_get_contents; in phar_restore_orig_functions()
1182 PHAR_G(orig_is_file) = phar_orig_functions.orig_is_file; in phar_restore_orig_functions()
1183 PHAR_G(orig_is_link) = phar_orig_functions.orig_is_link; in phar_restore_orig_functions()
1184 PHAR_G(orig_is_dir) = phar_orig_functions.orig_is_dir; in phar_restore_orig_functions()
1185 PHAR_G(orig_opendir) = phar_orig_functions.orig_opendir; in phar_restore_orig_functions()
1186 PHAR_G(orig_file_exists) = phar_orig_functions.orig_file_exists; in phar_restore_orig_functions()
1187 PHAR_G(orig_fileperms) = phar_orig_functions.orig_fileperms; in phar_restore_orig_functions()
1188 PHAR_G(orig_fileinode) = phar_orig_functions.orig_fileinode; in phar_restore_orig_functions()
1189 PHAR_G(orig_filesize) = phar_orig_functions.orig_filesize; in phar_restore_orig_functions()
1190 PHAR_G(orig_fileowner) = phar_orig_functions.orig_fileowner; in phar_restore_orig_functions()
1191 PHAR_G(orig_filegroup) = phar_orig_functions.orig_filegroup; in phar_restore_orig_functions()
1192 PHAR_G(orig_fileatime) = phar_orig_functions.orig_fileatime; in phar_restore_orig_functions()
1193 PHAR_G(orig_filemtime) = phar_orig_functions.orig_filemtime; in phar_restore_orig_functions()
1194 PHAR_G(orig_filectime) = phar_orig_functions.orig_filectime; in phar_restore_orig_functions()
1195 PHAR_G(orig_filetype) = phar_orig_functions.orig_filetype; in phar_restore_orig_functions()
1196 PHAR_G(orig_is_writable) = phar_orig_functions.orig_is_writable; in phar_restore_orig_functions()
1197 PHAR_G(orig_is_readable) = phar_orig_functions.orig_is_readable; in phar_restore_orig_functions()
1198 PHAR_G(orig_is_executable) = phar_orig_functions.orig_is_executable; in phar_restore_orig_functions()
1199 PHAR_G(orig_lstat) = phar_orig_functions.orig_lstat; in phar_restore_orig_functions()
1200 PHAR_G(orig_readfile) = phar_orig_functions.orig_readfile; in phar_restore_orig_functions()
1201 PHAR_G(orig_stat) = phar_orig_functions.orig_stat; in phar_restore_orig_functions()