Lines Matching refs:SPL_G

314 	zend_string *class_name, *lc_name, *file_exts = SPL_G(autoload_extensions);  in PHP_FUNCTION()
355 if (SPL_G(autoload_extensions)) { in PHP_FUNCTION()
356 zend_string_release_ex(SPL_G(autoload_extensions), 0); in PHP_FUNCTION()
358 SPL_G(autoload_extensions) = zend_string_copy(file_exts); in PHP_FUNCTION()
361 if (SPL_G(autoload_extensions) == NULL) { in PHP_FUNCTION()
364 zend_string_addref(SPL_G(autoload_extensions)); in PHP_FUNCTION()
365 RETURN_STR(SPL_G(autoload_extensions)); in PHP_FUNCTION()
405 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
412 int l_autoload_running = SPL_G(autoload_running); in PHP_FUNCTION()
414 SPL_G(autoload_running) = 1; in PHP_FUNCTION()
425 zend_hash_internal_pointer_reset_ex(SPL_G(autoload_functions), &pos); in PHP_FUNCTION()
426 …while (zend_hash_get_current_key_ex(SPL_G(autoload_functions), &func_name, &num_idx, &pos) == HASH… in PHP_FUNCTION()
427 alfi = zend_hash_get_current_data_ptr_ex(SPL_G(autoload_functions), &pos); in PHP_FUNCTION()
459 if (pos + 1 == SPL_G(autoload_functions)->nNumUsed || in PHP_FUNCTION()
463 zend_hash_move_forward_ex(SPL_G(autoload_functions), &pos); in PHP_FUNCTION()
466 SPL_G(autoload_running) = l_autoload_running; in PHP_FUNCTION()
598 if (SPL_G(autoload_functions) && zend_hash_exists(SPL_G(autoload_functions), lc_name)) { in PHP_FUNCTION()
616 if (!SPL_G(autoload_functions)) { in PHP_FUNCTION()
617 ALLOC_HASHTABLE(SPL_G(autoload_functions)); in PHP_FUNCTION()
618 zend_hash_init(SPL_G(autoload_functions), 1, NULL, autoload_func_info_dtor, 0); in PHP_FUNCTION()
630 zend_hash_add_mem(SPL_G(autoload_functions), spl_autoload_fn->common.function_name, in PHP_FUNCTION()
632 if (prepend && SPL_G(autoload_functions)->nNumOfElements > 1) { in PHP_FUNCTION()
634 HT_MOVE_TAIL_TO_HEAD(SPL_G(autoload_functions)); in PHP_FUNCTION()
645 …if (zend_hash_add_mem(SPL_G(autoload_functions), lc_name, &alfi, sizeof(autoload_func_info)) == NU… in PHP_FUNCTION()
657 if (prepend && SPL_G(autoload_functions)->nNumOfElements > 1) { in PHP_FUNCTION()
659 HT_MOVE_TAIL_TO_HEAD(SPL_G(autoload_functions)); in PHP_FUNCTION()
665 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
722 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
725 if (!SPL_G(autoload_running)) { in PHP_FUNCTION()
726 zend_hash_destroy(SPL_G(autoload_functions)); in PHP_FUNCTION()
727 FREE_HASHTABLE(SPL_G(autoload_functions)); in PHP_FUNCTION()
728 SPL_G(autoload_functions) = NULL; in PHP_FUNCTION()
731 zend_hash_clean(SPL_G(autoload_functions)); in PHP_FUNCTION()
736 success = zend_hash_del(SPL_G(autoload_functions), lc_name); in PHP_FUNCTION()
741 success = zend_hash_del(SPL_G(autoload_functions), lc_name); in PHP_FUNCTION()
786 ZEND_HASH_FOREACH_STR_KEY_PTR(SPL_G(autoload_functions), key, alfi) { in PHP_FUNCTION()
849 if (!SPL_G(hash_mask_init)) { in php_spl_object_hash()
850 SPL_G(hash_mask_handle) = (intptr_t)(php_mt_rand() >> 1); in php_spl_object_hash()
851 SPL_G(hash_mask_handlers) = (intptr_t)(php_mt_rand() >> 1); in php_spl_object_hash()
852 SPL_G(hash_mask_init) = 1; in php_spl_object_hash()
855 hash_handle = SPL_G(hash_mask_handle)^(intptr_t)Z_OBJ_HANDLE_P(obj); in php_spl_object_hash()
856 hash_handlers = SPL_G(hash_mask_handlers); in php_spl_object_hash()
1020 SPL_G(autoload_extensions) = NULL; in PHP_RINIT_FUNCTION()
1021 SPL_G(autoload_functions) = NULL; in PHP_RINIT_FUNCTION()
1022 SPL_G(hash_mask_init) = 0; in PHP_RINIT_FUNCTION()
1028 if (SPL_G(autoload_extensions)) { in PHP_RSHUTDOWN_FUNCTION()
1029 zend_string_release_ex(SPL_G(autoload_extensions), 0); in PHP_RSHUTDOWN_FUNCTION()
1030 SPL_G(autoload_extensions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1032 if (SPL_G(autoload_functions)) { in PHP_RSHUTDOWN_FUNCTION()
1033 zend_hash_destroy(SPL_G(autoload_functions)); in PHP_RSHUTDOWN_FUNCTION()
1034 FREE_HASHTABLE(SPL_G(autoload_functions)); in PHP_RSHUTDOWN_FUNCTION()
1035 SPL_G(autoload_functions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1037 if (SPL_G(hash_mask_init)) { in PHP_RSHUTDOWN_FUNCTION()
1038 SPL_G(hash_mask_init) = 0; in PHP_RSHUTDOWN_FUNCTION()