Lines Matching refs:PHAR_GLOBALS
87 if (PHAR_GLOBALS->request_init && PHAR_GLOBALS->phar_fname_map.arBuckets) { in ZEND_INI_MH()
88 …zend_hash_apply_with_argument(&(PHAR_GLOBALS->phar_fname_map), phar_set_writeable_bit, (void *)&in… in ZEND_INI_MH()
110 if (!PHAR_GLOBALS->cache_list || !(PHAR_GLOBALS->cache_list[0])) { in phar_split_cache_list()
116 tmp = estrdup(PHAR_GLOBALS->cache_list); in phar_split_cache_list()
119 PHAR_GLOBALS->request_init = 1; in phar_split_cache_list()
130 …zend_hash_init(&(PHAR_GLOBALS->phar_fname_map), sizeof(phar_archive_data*), zend_get_hash_value, d… in phar_split_cache_list()
131 …zend_hash_init(&(PHAR_GLOBALS->phar_alias_map), sizeof(phar_archive_data*), zend_get_hash_value, N… in phar_split_cache_list()
132 PHAR_GLOBALS->manifest_cached = 1; in phar_split_cache_list()
133 PHAR_GLOBALS->persist = 1; in phar_split_cache_list()
148 PHAR_GLOBALS->persist = 0; in phar_split_cache_list()
149 PHAR_GLOBALS->manifest_cached = 0; in phar_split_cache_list()
152 PHAR_GLOBALS->phar_fname_map.arBuckets = 0; in phar_split_cache_list()
154 PHAR_GLOBALS->phar_alias_map.arBuckets = 0; in phar_split_cache_list()
160 PHAR_GLOBALS->request_init = 0; in phar_split_cache_list()
172 PHAR_GLOBALS->persist = 0; in phar_split_cache_list()
173 PHAR_GLOBALS->request_init = 0; in phar_split_cache_list()
177 cached_phars = PHAR_GLOBALS->phar_fname_map; in phar_split_cache_list()
178 cached_alias = PHAR_GLOBALS->phar_alias_map; in phar_split_cache_list()
179 PHAR_GLOBALS->phar_fname_map.arBuckets = 0; in phar_split_cache_list()
180 PHAR_GLOBALS->phar_alias_map.arBuckets = 0; in phar_split_cache_list()
280 if (PHAR_GLOBALS->request_done in phar_archive_delref()
281 || zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) { in phar_archive_delref()
302 if (zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) { in phar_archive_delref()
363 if (PHAR_GLOBALS->request_ends) { in destroy_phar_data()
371 …zend_hash_apply_with_argument(&(PHAR_GLOBALS->phar_alias_map), phar_unalias_apply, phar_data TSRML… in destroy_phar_data()
1214 …if (SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void **)&fd_ptr)…
1222 …zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void*)&mydata, sizeof(phar_archi…
1227 …zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len, (void*)&mydata, sizeof(ph…
1412 …zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len, (void*)&mydata, sizeof(ph…
1423 …if (alias && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void **…
1429 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len);
1444 …if (FAILURE == zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void*)&mydata, si…
1451 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len);
1745 if (zend_hash_exists(&(PHAR_GLOBALS->phar_fname_map), realpath, strlen(realpath))) {
1914 if (zend_hash_exists(&(PHAR_GLOBALS->phar_alias_map), (char *) filename, pos - filename)) {
1927 if (zend_hash_num_elements(&(PHAR_GLOBALS->phar_fname_map)) || PHAR_G(manifest_cached)) {
1931 …if (SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), (char *) filename, filename_len, (v…
1961 zend_hash_internal_pointer_reset(&(PHAR_GLOBALS->phar_fname_map));
1963 while (FAILURE != zend_hash_has_more_elements(&(PHAR_GLOBALS->phar_fname_map))) {
1964 …if (HASH_KEY_NON_EXISTANT == zend_hash_get_current_key_ex(&(PHAR_GLOBALS->phar_fname_map), &key, &…
1971 zend_hash_move_forward(&(PHAR_GLOBALS->phar_fname_map));
1979 if (FAILURE == zend_hash_get_current_data(&(PHAR_GLOBALS->phar_fname_map), (void **) &pphar)) {
1987 zend_hash_move_forward(&(PHAR_GLOBALS->phar_fname_map));
3393 php_stream_rewind(PHAR_GLOBALS->cached_fp[phar->phar_pos].fp) :
3405 php_stream_rewind(PHAR_GLOBALS->cached_fp[phar->phar_pos].fp) :
3450 zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), arch, arch_len, (void **) &pphar);
3605 if (!PHAR_GLOBALS->request_init)
3611 PHAR_GLOBALS->request_init = 1;
3612 PHAR_GLOBALS->request_ends = 0;
3613 PHAR_GLOBALS->request_done = 0;
3614 zend_hash_init(&(PHAR_GLOBALS->phar_fname_map), 5, zend_get_hash_value, destroy_phar_data, 0);
3615 zend_hash_init(&(PHAR_GLOBALS->phar_persist_map), 5, zend_get_hash_value, NULL, 0);
3616 zend_hash_init(&(PHAR_GLOBALS->phar_alias_map), 5, zend_get_hash_value, NULL, 0);
3628 PHAR_GLOBALS->cached_fp = stuff;
3631 PHAR_GLOBALS->phar_SERVER_mung_list = 0;
3643 PHAR_GLOBALS->request_ends = 1;
3645 if (PHAR_GLOBALS->request_init)
3648 zend_hash_destroy(&(PHAR_GLOBALS->phar_alias_map));
3649 PHAR_GLOBALS->phar_alias_map.arBuckets = NULL;
3650 zend_hash_destroy(&(PHAR_GLOBALS->phar_fname_map));
3651 PHAR_GLOBALS->phar_fname_map.arBuckets = NULL;
3652 zend_hash_destroy(&(PHAR_GLOBALS->phar_persist_map));
3653 PHAR_GLOBALS->phar_persist_map.arBuckets = NULL;
3654 PHAR_GLOBALS->phar_SERVER_mung_list = 0;
3656 if (PHAR_GLOBALS->cached_fp) {
3658 if (PHAR_GLOBALS->cached_fp[i].fp) {
3659 php_stream_close(PHAR_GLOBALS->cached_fp[i].fp);
3661 if (PHAR_GLOBALS->cached_fp[i].ufp) {
3662 php_stream_close(PHAR_GLOBALS->cached_fp[i].ufp);
3664 efree(PHAR_GLOBALS->cached_fp[i].manifest);
3666 efree(PHAR_GLOBALS->cached_fp);
3667 PHAR_GLOBALS->cached_fp = 0;
3670 PHAR_GLOBALS->request_init = 0;
3681 PHAR_GLOBALS->request_done = 1;