Lines Matching refs:SPL_G

310 	zend_string *class_name, *lc_name, *file_exts = SPL_G(autoload_extensions);  in PHP_FUNCTION()
352 if (SPL_G(autoload_extensions)) { in PHP_FUNCTION()
353 zend_string_release(SPL_G(autoload_extensions)); in PHP_FUNCTION()
355 SPL_G(autoload_extensions) = zend_string_copy(file_exts); in PHP_FUNCTION()
358 if (SPL_G(autoload_extensions) == NULL) { in PHP_FUNCTION()
361 zend_string_addref(SPL_G(autoload_extensions)); in PHP_FUNCTION()
362 RETURN_STR(SPL_G(autoload_extensions)); in PHP_FUNCTION()
402 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
409 int l_autoload_running = SPL_G(autoload_running); in PHP_FUNCTION()
411 SPL_G(autoload_running) = 1; in PHP_FUNCTION()
423 zend_hash_internal_pointer_reset_ex(SPL_G(autoload_functions), &pos); in PHP_FUNCTION()
424 …while (zend_hash_get_current_key_ex(SPL_G(autoload_functions), &func_name, &num_idx, &pos) == HASH… in PHP_FUNCTION()
425 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()
463 SPL_G(autoload_running) = l_autoload_running; in PHP_FUNCTION()
578 if (SPL_G(autoload_functions) && zend_hash_exists(SPL_G(autoload_functions), lc_name)) { in PHP_FUNCTION()
596 if (!SPL_G(autoload_functions)) { in PHP_FUNCTION()
597 ALLOC_HASHTABLE(SPL_G(autoload_functions)); in PHP_FUNCTION()
598 zend_hash_init(SPL_G(autoload_functions), 1, NULL, autoload_func_info_dtor, 0); in PHP_FUNCTION()
610 zend_hash_str_add_mem(SPL_G(autoload_functions), "spl_autoload", sizeof("spl_autoload") - 1, in PHP_FUNCTION()
612 if (prepend && SPL_G(autoload_functions)->nNumOfElements > 1) { in PHP_FUNCTION()
614 HT_MOVE_TAIL_TO_HEAD(SPL_G(autoload_functions)); in PHP_FUNCTION()
625 …if (zend_hash_add_mem(SPL_G(autoload_functions), lc_name, &alfi, sizeof(autoload_func_info)) == NU… in PHP_FUNCTION()
637 if (prepend && SPL_G(autoload_functions)->nNumOfElements > 1) { in PHP_FUNCTION()
639 HT_MOVE_TAIL_TO_HEAD(SPL_G(autoload_functions)); in PHP_FUNCTION()
645 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
703 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
706 if (!SPL_G(autoload_running)) { in PHP_FUNCTION()
707 zend_hash_destroy(SPL_G(autoload_functions)); in PHP_FUNCTION()
708 FREE_HASHTABLE(SPL_G(autoload_functions)); in PHP_FUNCTION()
709 SPL_G(autoload_functions) = NULL; in PHP_FUNCTION()
712 zend_hash_clean(SPL_G(autoload_functions)); in PHP_FUNCTION()
717 success = zend_hash_del(SPL_G(autoload_functions), lc_name); in PHP_FUNCTION()
722 success = zend_hash_del(SPL_G(autoload_functions), lc_name); in PHP_FUNCTION()
764 ZEND_HASH_FOREACH_STR_KEY_PTR(SPL_G(autoload_functions), key, alfi) { in PHP_FUNCTION()
827 if (!SPL_G(hash_mask_init)) { in php_spl_object_hash()
828 SPL_G(hash_mask_handle) = (intptr_t)(php_mt_rand() >> 1); in php_spl_object_hash()
829 SPL_G(hash_mask_handlers) = (intptr_t)(php_mt_rand() >> 1); in php_spl_object_hash()
830 SPL_G(hash_mask_init) = 1; in php_spl_object_hash()
833 hash_handle = SPL_G(hash_mask_handle)^(intptr_t)Z_OBJ_HANDLE_P(obj); in php_spl_object_hash()
834 hash_handlers = SPL_G(hash_mask_handlers); in php_spl_object_hash()
993 SPL_G(autoload_extensions) = NULL; in PHP_RINIT_FUNCTION()
994 SPL_G(autoload_functions) = NULL; in PHP_RINIT_FUNCTION()
995 SPL_G(hash_mask_init) = 0; in PHP_RINIT_FUNCTION()
1001 if (SPL_G(autoload_extensions)) { in PHP_RSHUTDOWN_FUNCTION()
1002 zend_string_release(SPL_G(autoload_extensions)); in PHP_RSHUTDOWN_FUNCTION()
1003 SPL_G(autoload_extensions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1005 if (SPL_G(autoload_functions)) { in PHP_RSHUTDOWN_FUNCTION()
1006 zend_hash_destroy(SPL_G(autoload_functions)); in PHP_RSHUTDOWN_FUNCTION()
1007 FREE_HASHTABLE(SPL_G(autoload_functions)); in PHP_RSHUTDOWN_FUNCTION()
1008 SPL_G(autoload_functions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1010 if (SPL_G(hash_mask_init)) { in PHP_RSHUTDOWN_FUNCTION()
1011 SPL_G(hash_mask_init) = 0; in PHP_RSHUTDOWN_FUNCTION()