Lines Matching refs:SPL_G
311 zend_string *class_name, *lc_name, *file_exts = SPL_G(autoload_extensions); in PHP_FUNCTION()
353 if (SPL_G(autoload_extensions)) { in PHP_FUNCTION()
354 zend_string_release(SPL_G(autoload_extensions)); in PHP_FUNCTION()
356 SPL_G(autoload_extensions) = zend_string_copy(file_exts); in PHP_FUNCTION()
359 if (SPL_G(autoload_extensions) == NULL) { in PHP_FUNCTION()
362 zend_string_addref(SPL_G(autoload_extensions)); in PHP_FUNCTION()
363 RETURN_STR(SPL_G(autoload_extensions)); in PHP_FUNCTION()
403 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
406 int l_autoload_running = SPL_G(autoload_running); in PHP_FUNCTION()
407 SPL_G(autoload_running) = 1; in PHP_FUNCTION()
410 zend_hash_internal_pointer_reset_ex(SPL_G(autoload_functions), &pos); in PHP_FUNCTION()
411 …while (zend_hash_get_current_key_ex(SPL_G(autoload_functions), &func_name, &num_idx, &pos) == HASH… in PHP_FUNCTION()
412 alfi = zend_hash_get_current_data_ptr_ex(SPL_G(autoload_functions), &pos); in PHP_FUNCTION()
430 zend_hash_move_forward_ex(SPL_G(autoload_functions), &pos); in PHP_FUNCTION()
434 SPL_G(autoload_running) = l_autoload_running; in PHP_FUNCTION()
549 if (SPL_G(autoload_functions) && zend_hash_exists(SPL_G(autoload_functions), lc_name)) { in PHP_FUNCTION()
567 if (!SPL_G(autoload_functions)) { in PHP_FUNCTION()
568 ALLOC_HASHTABLE(SPL_G(autoload_functions)); in PHP_FUNCTION()
569 zend_hash_init(SPL_G(autoload_functions), 1, NULL, autoload_func_info_dtor, 0); in PHP_FUNCTION()
581 zend_hash_str_add_mem(SPL_G(autoload_functions), "spl_autoload", sizeof("spl_autoload") - 1, in PHP_FUNCTION()
583 if (prepend && SPL_G(autoload_functions)->nNumOfElements > 1) { in PHP_FUNCTION()
585 HT_MOVE_TAIL_TO_HEAD(SPL_G(autoload_functions)); in PHP_FUNCTION()
596 …if (zend_hash_add_mem(SPL_G(autoload_functions), lc_name, &alfi, sizeof(autoload_func_info)) == NU… in PHP_FUNCTION()
608 if (prepend && SPL_G(autoload_functions)->nNumOfElements > 1) { in PHP_FUNCTION()
610 HT_MOVE_TAIL_TO_HEAD(SPL_G(autoload_functions)); in PHP_FUNCTION()
616 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
674 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
677 if (!SPL_G(autoload_running)) { in PHP_FUNCTION()
678 zend_hash_destroy(SPL_G(autoload_functions)); in PHP_FUNCTION()
679 FREE_HASHTABLE(SPL_G(autoload_functions)); in PHP_FUNCTION()
680 SPL_G(autoload_functions) = NULL; in PHP_FUNCTION()
683 zend_hash_clean(SPL_G(autoload_functions)); in PHP_FUNCTION()
688 success = zend_hash_del(SPL_G(autoload_functions), lc_name); in PHP_FUNCTION()
693 success = zend_hash_del(SPL_G(autoload_functions), lc_name); in PHP_FUNCTION()
735 ZEND_HASH_FOREACH_STR_KEY_PTR(SPL_G(autoload_functions), key, alfi) { in PHP_FUNCTION()
784 if (!SPL_G(hash_mask_init)) { in php_spl_object_hash()
785 SPL_G(hash_mask_handle) = (intptr_t)(php_mt_rand() >> 1); in php_spl_object_hash()
786 SPL_G(hash_mask_handlers) = (intptr_t)(php_mt_rand() >> 1); in php_spl_object_hash()
787 SPL_G(hash_mask_init) = 1; in php_spl_object_hash()
790 hash_handle = SPL_G(hash_mask_handle)^(intptr_t)Z_OBJ_HANDLE_P(obj); in php_spl_object_hash()
791 hash_handlers = SPL_G(hash_mask_handlers); in php_spl_object_hash()
945 SPL_G(autoload_extensions) = NULL; in PHP_RINIT_FUNCTION()
946 SPL_G(autoload_functions) = NULL; in PHP_RINIT_FUNCTION()
947 SPL_G(hash_mask_init) = 0; in PHP_RINIT_FUNCTION()
953 if (SPL_G(autoload_extensions)) { in PHP_RSHUTDOWN_FUNCTION()
954 zend_string_release(SPL_G(autoload_extensions)); in PHP_RSHUTDOWN_FUNCTION()
955 SPL_G(autoload_extensions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
957 if (SPL_G(autoload_functions)) { in PHP_RSHUTDOWN_FUNCTION()
958 zend_hash_destroy(SPL_G(autoload_functions)); in PHP_RSHUTDOWN_FUNCTION()
959 FREE_HASHTABLE(SPL_G(autoload_functions)); in PHP_RSHUTDOWN_FUNCTION()
960 SPL_G(autoload_functions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
962 if (SPL_G(hash_mask_init)) { in PHP_RSHUTDOWN_FUNCTION()
963 SPL_G(hash_mask_init) = 0; in PHP_RSHUTDOWN_FUNCTION()