Lines Matching refs:scope

73 		zend_closure *closure, zval *newthis, zend_class_entry *scope) /* {{{ */  in zend_valid_closure_binding()  argument
83 if (is_fake_closure && func->common.scope && in zend_valid_closure_binding()
84 !instanceof_function(Z_OBJCE_P(newthis), func->common.scope)) { in zend_valid_closure_binding()
87 ZSTR_VAL(func->common.scope->name), in zend_valid_closure_binding()
92 } else if (is_fake_closure && func->common.scope in zend_valid_closure_binding()
102 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding()
105 ZSTR_VAL(scope->name)); in zend_valid_closure_binding()
109 if (is_fake_closure && scope != func->common.scope) { in zend_valid_closure_binding()
110 if (func->common.scope == NULL) { in zend_valid_closure_binding()
157 my_function.common.scope = Z_OBJCE_P(newthis); in ZEND_METHOD()
165 && (closure->func.common.scope != Z_OBJCE_P(newthis) in ZEND_METHOD()
211 ce = closure->func.common.scope; in do_closure_bind()
278 EX(func)->internal_function.scope->__callstatic : EX(func)->internal_function.scope->__call; in ZEND_NAMED_FUNCTION()
319 if (!mptr->common.scope) { in zend_create_closure_from_callable()
323 if (!mptr->common.scope->__callstatic) { in zend_create_closure_from_callable()
327 if (!mptr->common.scope->__call) { in zend_create_closure_from_callable()
337 call.scope = mptr->common.scope; in zend_create_closure_from_callable()
345 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, &instance); in zend_create_closure_from_callable()
347 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, NULL); in zend_create_closure_from_callable()
417 invoke->internal_function.scope = zend_ce_closure; in zend_get_closure_invoke_method()
521 closure->func.common.scope, closure->called_scope, &closure->this_ptr); in zend_closure_clone()
685 ZEND_API void zend_create_closure(zval *res, zend_function *func, zend_class_entry *scope, zend_cla… in zend_create_closure() argument
693 if ((scope == NULL) && this_ptr && (Z_TYPE_P(this_ptr) != IS_UNDEF)) { in zend_create_closure()
696 scope = zend_ce_closure; in zend_create_closure()
713 || func->common.scope != scope in zend_create_closure()
720 && (func->common.scope == scope || in zend_create_closure()
724 if (func->common.scope != scope) { in zend_create_closure()
725 func->common.scope = scope; in zend_create_closure()
758 if (!func->common.scope) { in zend_create_closure()
761 scope = NULL; in zend_create_closure()
768 closure->func.common.scope = scope; in zend_create_closure()
770 if (scope) { in zend_create_closure()
779 ZEND_API void zend_create_fake_closure(zval *res, zend_function *func, zend_class_entry *scope, zen… in zend_create_fake_closure() argument
783 zend_create_closure(res, func, scope, called_scope, this_ptr); in zend_create_fake_closure()