Lines Matching refs:calling_scope

2687 			fcc->calling_scope = EG(scope);  in zend_is_callable_check_class()
2701 fcc->calling_scope = EG(scope)->parent; in zend_is_callable_check_class()
2714 fcc->calling_scope = EG(called_scope); in zend_is_callable_check_class()
2724 fcc->calling_scope = *pce; in zend_is_callable_check_class()
2727 instanceof_function(scope, fcc->calling_scope TSRMLS_CC)) { in zend_is_callable_check_class()
2731 fcc->called_scope = fcc->object_ptr ? Z_OBJCE_P(fcc->object_ptr) : fcc->calling_scope; in zend_is_callable_check_class()
2745 zend_class_entry *ce_org = fcc->calling_scope; in zend_is_callable_check_func()
2758 fcc->calling_scope = NULL; in zend_is_callable_check_func()
2806 ftable = &fcc->calling_scope->function_table; in zend_is_callable_check_func()
2807 if (ce_org && !instanceof_function(ce_org, fcc->calling_scope TSRMLS_CC)) { in zend_is_callable_check_func()
2808 …spprintf(error, 0, "class '%s' is not a subclass of '%s'", ce_org->name, fcc->calling_scope->name); in zend_is_callable_check_func()
2817 fcc->calling_scope = ce_org; in zend_is_callable_check_func()
2828 fcc->calling_scope && in zend_is_callable_check_func()
2831 fcc->function_handler = fcc->calling_scope->constructor; in zend_is_callable_check_func()
2849 (fcc->calling_scope && in zend_is_callable_check_func()
2850 ((fcc->object_ptr && fcc->calling_scope->__call) || in zend_is_callable_check_func()
2851 (!fcc->object_ptr && fcc->calling_scope->__callstatic)))) { in zend_is_callable_check_func()
2868 if (fcc->object_ptr && fcc->calling_scope == ce_org) { in zend_is_callable_check_func()
2899 } else if (fcc->calling_scope) { in zend_is_callable_check_func()
2900 if (fcc->calling_scope->get_static_method) { in zend_is_callable_check_func()
2901 …fcc->function_handler = fcc->calling_scope->get_static_method(fcc->calling_scope, mname, mlen TSRM… in zend_is_callable_check_func()
2903 …fcc->function_handler = zend_std_get_static_method(fcc->calling_scope, mname, mlen, NULL TSRMLS_CC… in zend_is_callable_check_func()
2910 instanceof_function(Z_OBJCE_P(EG(This)), fcc->calling_scope TSRMLS_CC)) { in zend_is_callable_check_func()
2918 if (fcc->calling_scope && !call_via_handler) { in zend_is_callable_check_func()
2921 …zend_spprintf(error, 0, "cannot call abstract method %s::%s()", fcc->calling_scope->name, fcc->fun… in zend_is_callable_check_func()
2924 …zend_error(E_ERROR, "Cannot call abstract method %s::%s()", fcc->calling_scope->name, fcc->functio… in zend_is_callable_check_func()
2940 if (EG(This) && instanceof_function(Z_OBJCE_P(EG(This)), fcc->calling_scope TSRMLS_CC)) { in zend_is_callable_check_func()
2943 …e called statically, assuming $this from compatible context %s", fcc->calling_scope->name, fcc->fu… in zend_is_callable_check_func()
2948 …e called statically, assuming $this from compatible context %s", fcc->calling_scope->name, fcc->fu… in zend_is_callable_check_func()
2952 …(error, 0, "non-static method %s::%s() %s be called statically", fcc->calling_scope->name, fcc->fu… in zend_is_callable_check_func()
2957 …zend_error(severity, "Non-static method %s::%s() %s be called statically", fcc->calling_scope->nam… in zend_is_callable_check_func()
2968 …zend_spprintf(error, 0, "cannot access private method %s::%s()", fcc->calling_scope->name, fcc->fu… in zend_is_callable_check_func()
2978 …zend_spprintf(error, 0, "cannot access protected method %s::%s()", fcc->calling_scope->name, fcc->… in zend_is_callable_check_func()
2986 if (fcc->calling_scope) { in zend_is_callable_check_func()
2987 …if (error) zend_spprintf(error, 0, "class '%s' does not have a method '%s'", fcc->calling_scope->n… in zend_is_callable_check_func()
3024 fcc->calling_scope = NULL; in zend_is_callable_ex()
3027 fcc->calling_scope = NULL; in zend_is_callable_ex()
3043 fcc->calling_scope = Z_OBJCE_P(object_ptr); in zend_is_callable_ex()
3047 *callable_name_len = fcc->calling_scope->name_length + Z_STRLEN_P(callable) + sizeof("::") - 1; in zend_is_callable_ex()
3049 memcpy(ptr, fcc->calling_scope->name, fcc->calling_scope->name_length); in zend_is_callable_ex()
3050 ptr += fcc->calling_scope->name_length; in zend_is_callable_ex()
3060 fcc->called_scope = fcc->calling_scope; in zend_is_callable_ex()
3120 fcc->calling_scope = Z_OBJCE_PP(obj); /* TBFixed: what if it's overloaded? */ in zend_is_callable_ex()
3127 … *callable_name_len = fcc->calling_scope->name_length + Z_STRLEN_PP(method) + sizeof("::") - 1; in zend_is_callable_ex()
3129 memcpy(ptr, fcc->calling_scope->name, fcc->calling_scope->name_length); in zend_is_callable_ex()
3130 ptr += fcc->calling_scope->name_length; in zend_is_callable_ex()
3137 fcc->called_scope = fcc->calling_scope; in zend_is_callable_ex()
3175 …et_closure) && Z_OBJ_HANDLER_P(callable, get_closure)(callable, &fcc->calling_scope, &fcc->functio… in zend_is_callable_ex()
3176 fcc->called_scope = fcc->calling_scope; in zend_is_callable_ex()
3216 if (Z_TYPE_P(callable) == IS_STRING && fcc.calling_scope) { in zend_make_callable()
3219 add_next_index_string(callable, fcc.calling_scope->name, 1); in zend_make_callable()
3245 …fci->function_table = fcc->calling_scope ? &fcc->calling_scope->function_table : EG(function_table… in zend_fcall_info_init()