Lines Matching refs:scope

66 		zend_closure *closure, zval *newthis, zend_class_entry *scope) /* {{{ */  in zend_valid_closure_binding()  argument
76 if (is_fake_closure && func->common.scope && in zend_valid_closure_binding()
77 !instanceof_function(Z_OBJCE_P(newthis), func->common.scope)) { in zend_valid_closure_binding()
80 ZSTR_VAL(func->common.scope->name), in zend_valid_closure_binding()
85 } else if (!(func->common.fn_flags & ZEND_ACC_STATIC) && func->common.scope in zend_valid_closure_binding()
91 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding()
94 ZSTR_VAL(scope->name)); in zend_valid_closure_binding()
98 if (is_fake_closure && scope != func->common.scope) { in zend_valid_closure_binding()
143 my_function.common.scope = Z_OBJCE_P(newthis); in ZEND_METHOD()
147 if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope != Z_OBJCE_P(newthis)) { in ZEND_METHOD()
171 } else if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope != Z_OBJCE_P(newthis)) { in ZEND_METHOD()
200 ce = closure->func.common.scope; in ZEND_METHOD()
209 ce = closure->func.common.scope; in ZEND_METHOD()
238 EX(func)->internal_function.scope->__callstatic : EX(func)->internal_function.scope->__call; in ZEND_NAMED_FUNCTION()
285 call.scope = mptr->common.scope; in zend_create_closure_from_callable()
293 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, &instance); in zend_create_closure_from_callable()
295 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, NULL); in zend_create_closure_from_callable()
370 invoke->internal_function.scope = zend_ce_closure; in zend_get_closure_invoke_method()
475 closure->func.common.scope, closure->called_scope, &closure->this_ptr); in zend_closure_clone()
652 ZEND_API void zend_create_closure(zval *res, zend_function *func, zend_class_entry *scope, zend_cla… in zend_create_closure() argument
660 if ((scope == NULL) && this_ptr && (Z_TYPE_P(this_ptr) != IS_UNDEF)) { in zend_create_closure()
663 scope = zend_ce_closure; in zend_create_closure()
677 || func->common.scope != scope in zend_create_closure()
685 func->common.scope = scope; in zend_create_closure()
711 if (!func->common.scope) { in zend_create_closure()
714 scope = NULL; in zend_create_closure()
721 closure->func.common.scope = scope; in zend_create_closure()
723 if (scope) { in zend_create_closure()
732 ZEND_API void zend_create_fake_closure(zval *res, zend_function *func, zend_class_entry *scope, zen… in zend_create_fake_closure() argument
736 zend_create_closure(res, func, scope, called_scope, this_ptr); in zend_create_fake_closure()