Lines Matching refs:alfi

401 static void autoload_func_info_dtor(autoload_func_info *alfi)  in autoload_func_info_dtor()  argument
403 if (alfi->obj) { in autoload_func_info_dtor()
404 zval_ptr_dtor(&alfi->obj); in autoload_func_info_dtor()
406 if (alfi->closure) { in autoload_func_info_dtor()
407 zval_ptr_dtor(&alfi->closure); in autoload_func_info_dtor()
421 autoload_func_info *alfi; in PHP_FUNCTION() local
435 zend_hash_get_current_data_ex(SPL_G(autoload_functions), (void **) &alfi, &function_pos); in PHP_FUNCTION()
436 …zend_call_method(alfi->obj ? &alfi->obj : NULL, alfi->ce, &alfi->func_ptr, func_name, func_name_le… in PHP_FUNCTION()
475 autoload_func_info alfi; in PHP_FUNCTION() local
496 alfi.ce = fcc.calling_scope; in PHP_FUNCTION()
497 alfi.func_ptr = fcc.function_handler; in PHP_FUNCTION()
500 if (!obj_ptr && alfi.func_ptr && !(alfi.func_ptr->common.fn_flags & ZEND_ACC_STATIC)) { in PHP_FUNCTION()
511 …Exception, 0 TSRMLS_CC, "Passed array does not specify %s %smethod (%s)", alfi.func_ptr ? "a calla… in PHP_FUNCTION()
520 …l_ce_LogicException, 0 TSRMLS_CC, "Function '%s' not %s (%s)", func_name, alfi.func_ptr ? "callabl… in PHP_FUNCTION()
538 alfi.closure = NULL; in PHP_FUNCTION()
539 alfi.ce = fcc.calling_scope; in PHP_FUNCTION()
540 alfi.func_ptr = fcc.function_handler; in PHP_FUNCTION()
551 alfi.closure = zcallable; in PHP_FUNCTION()
562 if (alfi.closure) { in PHP_FUNCTION()
568 if (obj_ptr && !(alfi.func_ptr->common.fn_flags & ZEND_ACC_STATIC)) { in PHP_FUNCTION()
574 alfi.obj = obj_ptr; in PHP_FUNCTION()
575 Z_ADDREF_P(alfi.obj); in PHP_FUNCTION()
577 alfi.obj = NULL; 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()
602 if (obj_ptr && !(alfi.func_ptr->common.fn_flags & ZEND_ACC_STATIC)) { in PHP_FUNCTION()
603 Z_DELREF_P(alfi.obj); in PHP_FUNCTION()
605 if (alfi.closure) { in PHP_FUNCTION()
606 Z_DELREF_P(alfi.closure); in PHP_FUNCTION()
712 autoload_func_info *alfi; in PHP_FUNCTION() local
733 zend_hash_get_current_data_ex(SPL_G(autoload_functions), (void **) &alfi, &function_pos); in PHP_FUNCTION()
734 if (alfi->closure) { in PHP_FUNCTION()
735 Z_ADDREF_P(alfi->closure); in PHP_FUNCTION()
736 add_next_index_zval(return_value, alfi->closure); in PHP_FUNCTION()
737 } else if (alfi->func_ptr->common.scope) { in PHP_FUNCTION()
742 if (alfi->obj) { in PHP_FUNCTION()
743 Z_ADDREF_P(alfi->obj); in PHP_FUNCTION()
744 add_next_index_zval(tmp, alfi->obj); in PHP_FUNCTION()
746 add_next_index_string(tmp, alfi->ce->name, 1); in PHP_FUNCTION()
748 add_next_index_string(tmp, alfi->func_ptr->common.function_name, 1); in PHP_FUNCTION()
751 … if (strncmp(alfi->func_ptr->common.function_name, "__lambda_func", sizeof("__lambda_func") - 1)) { in PHP_FUNCTION()
752 add_next_index_string(return_value, alfi->func_ptr->common.function_name, 1); in PHP_FUNCTION()