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()
1217 …if (SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void **)&fd_ptr)…
1225 …zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void*)&mydata, sizeof(phar_archi…
1230 …zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len, (void*)&mydata, sizeof(ph…
1415 …zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len, (void*)&mydata, sizeof(ph…
1426 …if (alias && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void **…
1432 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len);
1447 …if (FAILURE == zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void*)&mydata, si…
1454 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len);
1750 if (zend_hash_exists(&(PHAR_GLOBALS->phar_fname_map), realpath, strlen(realpath))) {
1923 if (zend_hash_exists(&(PHAR_GLOBALS->phar_alias_map), (char *) filename, pos - filename)) {
1936 if (zend_hash_num_elements(&(PHAR_GLOBALS->phar_fname_map)) || PHAR_G(manifest_cached)) {
1940 …if (SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), (char *) filename, filename_len, (v…
1970 zend_hash_internal_pointer_reset(&(PHAR_GLOBALS->phar_fname_map));
1972 while (FAILURE != zend_hash_has_more_elements(&(PHAR_GLOBALS->phar_fname_map))) {
1973 …if (HASH_KEY_NON_EXISTANT == zend_hash_get_current_key_ex(&(PHAR_GLOBALS->phar_fname_map), &key, &…
1980 zend_hash_move_forward(&(PHAR_GLOBALS->phar_fname_map));
1988 if (FAILURE == zend_hash_get_current_data(&(PHAR_GLOBALS->phar_fname_map), (void **) &pphar)) {
1996 zend_hash_move_forward(&(PHAR_GLOBALS->phar_fname_map));
3373 php_stream_rewind(PHAR_GLOBALS->cached_fp[phar->phar_pos].fp) :
3385 php_stream_rewind(PHAR_GLOBALS->cached_fp[phar->phar_pos].fp) :
3430 zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), arch, arch_len, (void **) &pphar);
3585 if (!PHAR_GLOBALS->request_init)
3591 PHAR_GLOBALS->request_init = 1;
3592 PHAR_GLOBALS->request_ends = 0;
3593 PHAR_GLOBALS->request_done = 0;
3594 zend_hash_init(&(PHAR_GLOBALS->phar_fname_map), 5, zend_get_hash_value, destroy_phar_data, 0);
3595 zend_hash_init(&(PHAR_GLOBALS->phar_persist_map), 5, zend_get_hash_value, NULL, 0);
3596 zend_hash_init(&(PHAR_GLOBALS->phar_alias_map), 5, zend_get_hash_value, NULL, 0);
3608 PHAR_GLOBALS->cached_fp = stuff;
3611 PHAR_GLOBALS->phar_SERVER_mung_list = 0;
3623 PHAR_GLOBALS->request_ends = 1;
3625 if (PHAR_GLOBALS->request_init)
3628 zend_hash_destroy(&(PHAR_GLOBALS->phar_alias_map));
3629 PHAR_GLOBALS->phar_alias_map.arBuckets = NULL;
3630 zend_hash_destroy(&(PHAR_GLOBALS->phar_fname_map));
3631 PHAR_GLOBALS->phar_fname_map.arBuckets = NULL;
3632 zend_hash_destroy(&(PHAR_GLOBALS->phar_persist_map));
3633 PHAR_GLOBALS->phar_persist_map.arBuckets = NULL;
3634 PHAR_GLOBALS->phar_SERVER_mung_list = 0;
3636 if (PHAR_GLOBALS->cached_fp) {
3638 if (PHAR_GLOBALS->cached_fp[i].fp) {
3639 php_stream_close(PHAR_GLOBALS->cached_fp[i].fp);
3641 if (PHAR_GLOBALS->cached_fp[i].ufp) {
3642 php_stream_close(PHAR_GLOBALS->cached_fp[i].ufp);
3644 efree(PHAR_GLOBALS->cached_fp[i].manifest);
3646 efree(PHAR_GLOBALS->cached_fp);
3647 PHAR_GLOBALS->cached_fp = 0;
3650 PHAR_GLOBALS->request_init = 0;
3661 PHAR_GLOBALS->request_done = 1;