Lines Matching refs:PHAR_G

259 	if (!zend_is_executing() || !PHAR_G(cwd)) {  in phar_find_in_include_path()
266 … (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_len)… in phar_find_in_include_path()
267 arch = estrndup(PHAR_G(last_phar_name), PHAR_G(last_phar_name_len)); in phar_find_in_include_path()
268 arch_len = PHAR_G(last_phar_name_len); in phar_find_in_include_path()
269 phar = PHAR_G(last_phar); in phar_find_in_include_path()
312 …spprintf(&path, MAXPATHLEN + 1 + strlen(PG(include_path)), "phar://%s/%s%c%s", arch, PHAR_G(cwd), … in phar_find_in_include_path()
323 *pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), arch, arch_len); in phar_find_in_include_path()
325 if (!*pphar && PHAR_G(manifest_cached)) { in phar_find_in_include_path()
368 if (for_write && PHAR_G(readonly) && !phar->is_data) { in phar_get_entry_data()
383 …if ((entry = phar_get_entry_info_dir(phar, path, path_len, allow_dir, for_create && !PHAR_G(readon… in phar_get_entry_data()
384 if (for_create && (!PHAR_G(readonly) || phar->is_data)) { in phar_get_entry_data()
390 …if ((entry = phar_get_entry_info(phar, path, path_len, for_create && !PHAR_G(readonly) && !phar->i… in phar_get_entry_data()
391 if (for_create && (!PHAR_G(readonly) || phar->is_data)) { in phar_get_entry_data()
925 if (PHAR_G(phar_alias_map.u.flags) in phar_resolve_alias()
926 && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len))) { in phar_resolve_alias()
942 if (zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) { in phar_free_alias()
947 PHAR_G(last_phar) = NULL; in phar_free_alias()
948 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_free_alias()
972 …if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_pha… in phar_get_archive()
973 *archive = PHAR_G(last_phar); in phar_get_archive()
976 …if (!PHAR_G(last_phar)->is_temporary_alias && (alias_len != PHAR_G(last_phar)->alias_len || memcmp… in phar_get_archive()
978 …lready used for archive \"%s\" cannot be overloaded with \"%s\"", alias, PHAR_G(last_phar)->fname,… in phar_get_archive()
984 …if (PHAR_G(last_phar)->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_m… in phar_get_archive()
985 …zend_hash_str_del(&(PHAR_G(phar_alias_map)), PHAR_G(last_phar)->alias, PHAR_G(last_phar)->alias_le… in phar_get_archive()
988 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, *archive); in phar_get_archive()
989 PHAR_G(last_alias) = alias; in phar_get_archive()
990 PHAR_G(last_alias_len) = alias_len; in phar_get_archive()
996 …if (alias && alias_len && PHAR_G(last_phar) && alias_len == PHAR_G(last_alias_len) && !memcmp(alia… in phar_get_archive()
997 fd = PHAR_G(last_phar); in phar_get_archive()
1003 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len))) { in phar_get_archive()
1020 PHAR_G(last_phar) = fd; in phar_get_archive()
1021 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1022 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1023 PHAR_G(last_alias) = alias; in phar_get_archive()
1024 PHAR_G(last_alias_len) = alias_len; in phar_get_archive()
1029 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_alias, alias, alia… in phar_get_archive()
1039 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len))) { in phar_get_archive()
1051 …if (fd->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), fd->alias… in phar_get_archive()
1052 zend_hash_str_del(&(PHAR_G(phar_alias_map)), fd->alias, fd->alias_len); in phar_get_archive()
1055 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, fd); in phar_get_archive()
1058 PHAR_G(last_phar) = fd; in phar_get_archive()
1059 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1060 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1061 PHAR_G(last_alias) = fd->alias; in phar_get_archive()
1062 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1067 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_phars, fname, fnam… in phar_get_archive()
1082 PHAR_G(last_phar) = fd; in phar_get_archive()
1083 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1084 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1085 PHAR_G(last_alias) = fd->alias; in phar_get_archive()
1086 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1091 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), save, save_len))) { in phar_get_archive()
1094 PHAR_G(last_phar) = fd; in phar_get_archive()
1095 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1096 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1097 PHAR_G(last_alias) = fd->alias; in phar_get_archive()
1098 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1103 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_alias, save, save_… in phar_get_archive()
1106 PHAR_G(last_phar) = fd; in phar_get_archive()
1107 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1108 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1109 PHAR_G(last_alias) = fd->alias; in phar_get_archive()
1110 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1128 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len))) { in phar_get_archive()
1134 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, fd); in phar_get_archive()
1139 PHAR_G(last_phar) = fd; in phar_get_archive()
1140 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1141 PHAR_G(last_phar_name_len) = fd->fname_len; in phar_get_archive()
1142 PHAR_G(last_alias) = fd->alias; in phar_get_archive()
1143 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1148 …if (PHAR_G(manifest_cached) && NULL != (fd_ptr = zend_hash_str_find_ptr(&cached_phars, fname, fnam… in phar_get_archive()
1376 *signature = (char*)safe_pemalloc(digest_len, 2, 1, PHAR_G(persist)); in phar_hex_str()
1841 in = BIO_new_mem_buf(PHAR_G(openssl_privatekey), PHAR_G(openssl_privatekey_len)); in phar_create_signature()
1898 …= phar_call_openssl_signverify(1, fp, php_stream_tell(fp), PHAR_G(openssl_privatekey), PHAR_G(open… in phar_create_signature()
2048 ZEND_HASH_FOREACH_PTR(&PHAR_G(phar_persist_map), objphar) { in phar_copy_cached_phar()
2062 …if (NULL == (pzv = zend_hash_str_add(&(PHAR_G(phar_fname_map)), (*pphar)->fname, (*pphar)->fname_l… in phar_copy_on_write()
2069 PHAR_G(last_phar) = NULL; in phar_copy_on_write()
2070 PHAR_G(last_phar_name) = PHAR_G(last_alias) = NULL; in phar_copy_on_write()
2072 …if (newpphar->alias_len && NULL == zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), newpphar->alia… in phar_copy_on_write()
2073 zend_hash_str_del(&(PHAR_G(phar_fname_map)), (*pphar)->fname, (*pphar)->fname_len); in phar_copy_on_write()