Lines Matching refs:SPL_G

310 	zend_string *class_name, *lc_name, *file_exts = SPL_G(autoload_extensions);  in PHP_FUNCTION()
351 if (SPL_G(autoload_extensions)) { in PHP_FUNCTION()
352 zend_string_release_ex(SPL_G(autoload_extensions), 0); in PHP_FUNCTION()
354 SPL_G(autoload_extensions) = zend_string_copy(file_exts); in PHP_FUNCTION()
357 if (SPL_G(autoload_extensions) == NULL) { in PHP_FUNCTION()
360 zend_string_addref(SPL_G(autoload_extensions)); in PHP_FUNCTION()
361 RETURN_STR(SPL_G(autoload_extensions)); in PHP_FUNCTION()
401 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
408 int l_autoload_running = SPL_G(autoload_running); in PHP_FUNCTION()
410 SPL_G(autoload_running) = 1; in PHP_FUNCTION()
421 zend_hash_internal_pointer_reset_ex(SPL_G(autoload_functions), &pos); in PHP_FUNCTION()
422 …while (zend_hash_get_current_key_ex(SPL_G(autoload_functions), &func_name, &num_idx, &pos) == HASH… in PHP_FUNCTION()
423 alfi = zend_hash_get_current_data_ptr_ex(SPL_G(autoload_functions), &pos); in PHP_FUNCTION()
455 if (pos + 1 == SPL_G(autoload_functions)->nNumUsed || in PHP_FUNCTION()
459 zend_hash_move_forward_ex(SPL_G(autoload_functions), &pos); in PHP_FUNCTION()
462 SPL_G(autoload_running) = l_autoload_running; in PHP_FUNCTION()
594 if (SPL_G(autoload_functions) && zend_hash_exists(SPL_G(autoload_functions), lc_name)) { in PHP_FUNCTION()
612 if (!SPL_G(autoload_functions)) { in PHP_FUNCTION()
613 ALLOC_HASHTABLE(SPL_G(autoload_functions)); in PHP_FUNCTION()
614 zend_hash_init(SPL_G(autoload_functions), 1, NULL, autoload_func_info_dtor, 0); in PHP_FUNCTION()
626 zend_hash_add_mem(SPL_G(autoload_functions), spl_autoload_fn->common.function_name, in PHP_FUNCTION()
628 if (prepend && SPL_G(autoload_functions)->nNumOfElements > 1) { in PHP_FUNCTION()
630 HT_MOVE_TAIL_TO_HEAD(SPL_G(autoload_functions)); in PHP_FUNCTION()
641 …if (zend_hash_add_mem(SPL_G(autoload_functions), lc_name, &alfi, sizeof(autoload_func_info)) == NU… in PHP_FUNCTION()
653 if (prepend && SPL_G(autoload_functions)->nNumOfElements > 1) { in PHP_FUNCTION()
655 HT_MOVE_TAIL_TO_HEAD(SPL_G(autoload_functions)); in PHP_FUNCTION()
661 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
718 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
721 if (!SPL_G(autoload_running)) { in PHP_FUNCTION()
722 zend_hash_destroy(SPL_G(autoload_functions)); in PHP_FUNCTION()
723 FREE_HASHTABLE(SPL_G(autoload_functions)); in PHP_FUNCTION()
724 SPL_G(autoload_functions) = NULL; in PHP_FUNCTION()
727 zend_hash_clean(SPL_G(autoload_functions)); in PHP_FUNCTION()
732 success = zend_hash_del(SPL_G(autoload_functions), lc_name); in PHP_FUNCTION()
737 success = zend_hash_del(SPL_G(autoload_functions), lc_name); in PHP_FUNCTION()
782 ZEND_HASH_FOREACH_STR_KEY_PTR(SPL_G(autoload_functions), key, alfi) { in PHP_FUNCTION()
845 if (!SPL_G(hash_mask_init)) { in php_spl_object_hash()
846 SPL_G(hash_mask_handle) = (intptr_t)(php_mt_rand() >> 1); in php_spl_object_hash()
847 SPL_G(hash_mask_handlers) = (intptr_t)(php_mt_rand() >> 1); in php_spl_object_hash()
848 SPL_G(hash_mask_init) = 1; in php_spl_object_hash()
851 hash_handle = SPL_G(hash_mask_handle)^(intptr_t)Z_OBJ_HANDLE_P(obj); in php_spl_object_hash()
852 hash_handlers = SPL_G(hash_mask_handlers); in php_spl_object_hash()
1015 SPL_G(autoload_extensions) = NULL; in PHP_RINIT_FUNCTION()
1016 SPL_G(autoload_functions) = NULL; in PHP_RINIT_FUNCTION()
1017 SPL_G(hash_mask_init) = 0; in PHP_RINIT_FUNCTION()
1023 if (SPL_G(autoload_extensions)) { in PHP_RSHUTDOWN_FUNCTION()
1024 zend_string_release_ex(SPL_G(autoload_extensions), 0); in PHP_RSHUTDOWN_FUNCTION()
1025 SPL_G(autoload_extensions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1027 if (SPL_G(autoload_functions)) { in PHP_RSHUTDOWN_FUNCTION()
1028 zend_hash_destroy(SPL_G(autoload_functions)); in PHP_RSHUTDOWN_FUNCTION()
1029 FREE_HASHTABLE(SPL_G(autoload_functions)); in PHP_RSHUTDOWN_FUNCTION()
1030 SPL_G(autoload_functions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1032 if (SPL_G(hash_mask_init)) { in PHP_RSHUTDOWN_FUNCTION()
1033 SPL_G(hash_mask_init) = 0; in PHP_RSHUTDOWN_FUNCTION()