Lines Matching refs:PHAR_G

255 	if (!zend_is_executing() || !PHAR_G(cwd)) {  in phar_find_in_include_path()
268 PHAR_G(last_phar) in phar_find_in_include_path()
270 && ZSTR_LEN(fname) - length_phar_protocol >= PHAR_G(last_phar_name_len) in phar_find_in_include_path()
271 …&& !memcmp(ZSTR_VAL(fname) + length_phar_protocol, PHAR_G(last_phar_name), PHAR_G(last_phar_name_l… 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()
274 arch_len = PHAR_G(last_phar_name_len); in phar_find_in_include_path()
275 phar = PHAR_G(last_phar); in phar_find_in_include_path()
318 …spprintf(&path, MAXPATHLEN + 1 + strlen(PG(include_path)), "phar://%s/%s%c%s", arch, PHAR_G(cwd), … in phar_find_in_include_path()
329 *pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), arch, arch_len); in phar_find_in_include_path()
331 if (!*pphar && PHAR_G(manifest_cached)) { in phar_find_in_include_path()
374 if (for_write && PHAR_G(readonly) && !phar->is_data) { in phar_get_entry_data()
389 …if ((entry = phar_get_entry_info_dir(phar, path, path_len, allow_dir, for_create && !PHAR_G(readon… in phar_get_entry_data()
390 if (for_create && (!PHAR_G(readonly) || phar->is_data)) { in phar_get_entry_data()
396 …if ((entry = phar_get_entry_info(phar, path, path_len, for_create && !PHAR_G(readonly) && !phar->i… in phar_get_entry_data()
397 if (for_create && (!PHAR_G(readonly) || phar->is_data)) { in phar_get_entry_data()
931 if (HT_IS_INITIALIZED(&PHAR_G(phar_alias_map)) in phar_resolve_alias()
932 && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len))) { in phar_resolve_alias()
948 if (zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) { in phar_free_alias()
953 PHAR_G(last_phar) = NULL; in phar_free_alias()
954 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_free_alias()
978 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive()
979 *archive = PHAR_G(last_phar); in phar_get_archive()
982 …if (!PHAR_G(last_phar)->is_temporary_alias && (alias_len != PHAR_G(last_phar)->alias_len || memcmp… in phar_get_archive()
984 …lready used for archive \"%s\" cannot be overloaded with \"%s\"", alias, PHAR_G(last_phar)->fname,… in phar_get_archive()
990 …if (PHAR_G(last_phar)->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_m… in phar_get_archive()
991 …zend_hash_str_del(&(PHAR_G(phar_alias_map)), PHAR_G(last_phar)->alias, PHAR_G(last_phar)->alias_le… in phar_get_archive()
994 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, *archive); in phar_get_archive()
995 PHAR_G(last_alias) = alias; in phar_get_archive()
996 PHAR_G(last_alias_len) = alias_len; in phar_get_archive()
1002 …if (alias && alias_len && PHAR_G(last_phar) && alias_len == PHAR_G(last_alias_len) && !memcmp(alia… in phar_get_archive()
1003 fd = PHAR_G(last_phar); in phar_get_archive()
1009 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len))) { in phar_get_archive()
1026 PHAR_G(last_phar) = fd; in phar_get_archive()
1027 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1028 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1029 PHAR_G(last_alias) = alias; in phar_get_archive()
1030 PHAR_G(last_alias_len) = alias_len; in phar_get_archive()
1035 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_alias, alias, alia… in phar_get_archive()
1045 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len))) { in phar_get_archive()
1057 …if (fd->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), fd->alias… in phar_get_archive()
1058 zend_hash_str_del(&(PHAR_G(phar_alias_map)), fd->alias, fd->alias_len); in phar_get_archive()
1061 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, fd); in phar_get_archive()
1064 PHAR_G(last_phar) = fd; in phar_get_archive()
1065 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1066 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1067 PHAR_G(last_alias) = fd->alias; in phar_get_archive()
1068 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1073 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_phars, fname, fnam… in phar_get_archive()
1088 PHAR_G(last_phar) = fd; in phar_get_archive()
1089 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1090 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1091 PHAR_G(last_alias) = fd->alias; in phar_get_archive()
1092 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1097 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), save, save_len))) { in phar_get_archive()
1100 PHAR_G(last_phar) = fd; in phar_get_archive()
1101 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1102 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1103 PHAR_G(last_alias) = fd->alias; in phar_get_archive()
1104 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1109 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_alias, save, save_… in phar_get_archive()
1112 PHAR_G(last_phar) = fd; in phar_get_archive()
1113 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1114 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1115 PHAR_G(last_alias) = fd->alias; in phar_get_archive()
1116 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1134 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len))) { in phar_get_archive()
1140 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, fd); in phar_get_archive()
1145 PHAR_G(last_phar) = fd; in phar_get_archive()
1146 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1147 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1148 PHAR_G(last_alias) = fd->alias; in phar_get_archive()
1149 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1154 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_phars, fname, fnam… in phar_get_archive()
1382 *signature = (char*)safe_pemalloc(digest_len, 2, 1, PHAR_G(persist)); in phar_hex_str()
1873 in = BIO_new_mem_buf(PHAR_G(openssl_privatekey), PHAR_G(openssl_privatekey_len)); in phar_create_signature()
1942 …= phar_call_openssl_signverify(1, fp, php_stream_tell(fp), PHAR_G(openssl_privatekey), PHAR_G(open… in phar_create_signature()
2083 ZEND_HASH_MAP_FOREACH_PTR(&PHAR_G(phar_persist_map), objphar) { in phar_copy_cached_phar()
2097 …if (NULL == (pzv = zend_hash_str_add(&(PHAR_G(phar_fname_map)), (*pphar)->fname, (*pphar)->fname_l… in phar_copy_on_write()
2104 PHAR_G(last_phar) = NULL; in phar_copy_on_write()
2105 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_copy_on_write()
2107 …if (newpphar->alias_len && NULL == zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), newpphar->alia… in phar_copy_on_write()
2108 zend_hash_str_del(&(PHAR_G(phar_fname_map)), (*pphar)->fname, (*pphar)->fname_len); in phar_copy_on_write()