Lines Matching refs:SPL_G

318 	char *class_name, *lc_name, *file_exts = SPL_G(autoload_extensions);  in PHP_FUNCTION()
319 int class_name_len, file_exts_len = SPL_G(autoload_extensions_len), found = 0; in PHP_FUNCTION()
356 if (!found && !SPL_G(autoload_running)) { in PHP_FUNCTION()
380 if (SPL_G(autoload_extensions)) { in PHP_FUNCTION()
381 efree(SPL_G(autoload_extensions)); in PHP_FUNCTION()
383 SPL_G(autoload_extensions) = estrndup(file_exts, file_exts_len); in PHP_FUNCTION()
384 SPL_G(autoload_extensions_len) = file_exts_len; in PHP_FUNCTION()
387 if (SPL_G(autoload_extensions) == NULL) { in PHP_FUNCTION()
390 RETURN_STRINGL(SPL_G(autoload_extensions), SPL_G(autoload_extensions_len), 1); in PHP_FUNCTION()
427 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
428 int l_autoload_running = SPL_G(autoload_running); in PHP_FUNCTION()
429 SPL_G(autoload_running) = 1; in PHP_FUNCTION()
432 zend_hash_internal_pointer_reset_ex(SPL_G(autoload_functions), &function_pos); in PHP_FUNCTION()
433 while(zend_hash_has_more_elements_ex(SPL_G(autoload_functions), &function_pos) == SUCCESS) { in PHP_FUNCTION()
434 …zend_hash_get_current_key_ex(SPL_G(autoload_functions), &func_name, &func_name_len, &dummy, 0, &fu… in PHP_FUNCTION()
435 zend_hash_get_current_data_ex(SPL_G(autoload_functions), (void **) &alfi, &function_pos); in PHP_FUNCTION()
445 zend_hash_move_forward_ex(SPL_G(autoload_functions), &function_pos); in PHP_FUNCTION()
449 SPL_G(autoload_running) = l_autoload_running; in PHP_FUNCTION()
561 …if (SPL_G(autoload_functions) && zend_hash_exists(SPL_G(autoload_functions), (char*)lc_name, func_… in PHP_FUNCTION()
580 if (!SPL_G(autoload_functions)) { in PHP_FUNCTION()
581 ALLOC_HASHTABLE(SPL_G(autoload_functions)); in PHP_FUNCTION()
582 zend_hash_init(SPL_G(autoload_functions), 1, NULL, (dtor_func_t) autoload_func_info_dtor, 0); in PHP_FUNCTION()
594 …zend_hash_add(SPL_G(autoload_functions), "spl_autoload", sizeof("spl_autoload"), &spl_alfi, sizeof… in PHP_FUNCTION()
595 if (prepend && SPL_G(autoload_functions)->nNumOfElements > 1) { in PHP_FUNCTION()
597 HT_MOVE_TAIL_TO_HEAD(SPL_G(autoload_functions)); in PHP_FUNCTION()
601 …if (zend_hash_add(SPL_G(autoload_functions), lc_name, func_name_len+1, &alfi.func_ptr, sizeof(auto… in PHP_FUNCTION()
609 if (prepend && SPL_G(autoload_functions)->nNumOfElements > 1) { in PHP_FUNCTION()
611 HT_MOVE_TAIL_TO_HEAD(SPL_G(autoload_functions)); in PHP_FUNCTION()
617 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
669 if (SPL_G(autoload_functions)) { in PHP_FUNCTION()
672 if (!SPL_G(autoload_running)) { in PHP_FUNCTION()
673 zend_hash_destroy(SPL_G(autoload_functions)); in PHP_FUNCTION()
674 FREE_HASHTABLE(SPL_G(autoload_functions)); in PHP_FUNCTION()
675 SPL_G(autoload_functions) = NULL; in PHP_FUNCTION()
678 zend_hash_clean(SPL_G(autoload_functions)); in PHP_FUNCTION()
683 success = zend_hash_del(SPL_G(autoload_functions), lc_name, func_name_len+1); in PHP_FUNCTION()
689 success = zend_hash_del(SPL_G(autoload_functions), lc_name, func_name_len+1); in PHP_FUNCTION()
731 zend_hash_internal_pointer_reset_ex(SPL_G(autoload_functions), &function_pos); in PHP_FUNCTION()
732 while(zend_hash_has_more_elements_ex(SPL_G(autoload_functions), &function_pos) == SUCCESS) { in PHP_FUNCTION()
733 zend_hash_get_current_data_ex(SPL_G(autoload_functions), (void **) &alfi, &function_pos); in PHP_FUNCTION()
757 … zend_hash_get_current_key_ex(SPL_G(autoload_functions), &key, &len, &dummy, 0, &function_pos); in PHP_FUNCTION()
762 zend_hash_move_forward_ex(SPL_G(autoload_functions), &function_pos); in PHP_FUNCTION()
794 if (!SPL_G(hash_mask_init)) { in php_spl_object_hash()
799 SPL_G(hash_mask_handle) = (intptr_t)(php_mt_rand(TSRMLS_C) >> 1); in php_spl_object_hash()
800 SPL_G(hash_mask_handlers) = (intptr_t)(php_mt_rand(TSRMLS_C) >> 1); in php_spl_object_hash()
801 SPL_G(hash_mask_init) = 1; in php_spl_object_hash()
804 hash_handle = SPL_G(hash_mask_handle)^(intptr_t)Z_OBJ_HANDLE_P(obj); in php_spl_object_hash()
805 hash_handlers = SPL_G(hash_mask_handlers)^(intptr_t)Z_OBJ_HT_P(obj); in php_spl_object_hash()
964 SPL_G(autoload_extensions) = NULL; in PHP_RINIT_FUNCTION()
965 SPL_G(autoload_extensions_len) = 0; in PHP_RINIT_FUNCTION()
966 SPL_G(autoload_functions) = NULL; in PHP_RINIT_FUNCTION()
967 SPL_G(hash_mask_init) = 0; in PHP_RINIT_FUNCTION()
973 if (SPL_G(autoload_extensions)) { in PHP_RSHUTDOWN_FUNCTION()
974 efree(SPL_G(autoload_extensions)); in PHP_RSHUTDOWN_FUNCTION()
975 SPL_G(autoload_extensions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
976 SPL_G(autoload_extensions_len) = 0; in PHP_RSHUTDOWN_FUNCTION()
978 if (SPL_G(autoload_functions)) { in PHP_RSHUTDOWN_FUNCTION()
979 zend_hash_destroy(SPL_G(autoload_functions)); in PHP_RSHUTDOWN_FUNCTION()
980 FREE_HASHTABLE(SPL_G(autoload_functions)); in PHP_RSHUTDOWN_FUNCTION()
981 SPL_G(autoload_functions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
983 if (SPL_G(hash_mask_init)) { in PHP_RSHUTDOWN_FUNCTION()
984 SPL_G(hash_mask_init) = 0; in PHP_RSHUTDOWN_FUNCTION()