Lines Matching refs:scope

68 		zend_closure *closure, zval *newthis, zend_class_entry *scope) /* {{{ */  in zend_valid_closure_binding()  argument
78 if (is_fake_closure && func->common.scope && in zend_valid_closure_binding()
79 !instanceof_function(Z_OBJCE_P(newthis), func->common.scope)) { in zend_valid_closure_binding()
82 ZSTR_VAL(func->common.scope->name), in zend_valid_closure_binding()
87 } else if (is_fake_closure && func->common.scope in zend_valid_closure_binding()
97 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding()
100 ZSTR_VAL(scope->name)); in zend_valid_closure_binding()
104 if (is_fake_closure && scope != func->common.scope) { in zend_valid_closure_binding()
105 if (func->common.scope == NULL) { in zend_valid_closure_binding()
154 my_function.common.scope = newclass; in ZEND_METHOD()
162 && (closure->func.common.scope != newclass in ZEND_METHOD()
208 ce = closure->func.common.scope; in do_closure_bind()
275 EX(func)->internal_function.scope->__callstatic : EX(func)->internal_function.scope->__call; in ZEND_NAMED_FUNCTION()
316 if (!mptr->common.scope) { in zend_create_closure_from_callable()
320 if (!mptr->common.scope->__callstatic) { in zend_create_closure_from_callable()
324 if (!mptr->common.scope->__call) { in zend_create_closure_from_callable()
334 call.scope = mptr->common.scope; in zend_create_closure_from_callable()
342 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, &instance); in zend_create_closure_from_callable()
344 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, NULL); in zend_create_closure_from_callable()
416 if (lhs->func.common.scope != rhs->func.common.scope) { in zend_closure_compare()
450 invoke->internal_function.scope = zend_ce_closure; in zend_get_closure_invoke_method()
522 closure->func.common.scope, closure->called_scope, &closure->this_ptr); in zend_closure_clone()
673 static void zend_create_closure_ex(zval *res, zend_function *func, zend_class_entry *scope, zend_cl… in zend_create_closure_ex() argument
681 if ((scope == NULL) && this_ptr && (Z_TYPE_P(this_ptr) != IS_UNDEF)) { in zend_create_closure_ex()
684 scope = zend_ce_closure; in zend_create_closure_ex()
716 || func->common.scope != scope in zend_create_closure_ex()
723 && (func->common.scope == scope || in zend_create_closure_ex()
727 if (func->common.scope != scope) { in zend_create_closure_ex()
728 func->common.scope = scope; in zend_create_closure_ex()
758 if (!func->common.scope) { in zend_create_closure_ex()
761 scope = NULL; in zend_create_closure_ex()
768 closure->func.common.scope = scope; in zend_create_closure_ex()
770 if (scope) { in zend_create_closure_ex()
779 ZEND_API void zend_create_closure(zval *res, zend_function *func, zend_class_entry *scope, zend_cla… in zend_create_closure() argument
781 zend_create_closure_ex(res, func, scope, called_scope, this_ptr, in zend_create_closure()
785 ZEND_API void zend_create_fake_closure(zval *res, zend_function *func, zend_class_entry *scope, zen… in zend_create_fake_closure() argument
789 zend_create_closure_ex(res, func, scope, called_scope, this_ptr, /* is_fake */ true); in zend_create_fake_closure()
818 trampoline.scope = mptr->common.scope; in zend_closure_from_frame()
827 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_OBJCE(instance), &instance); in zend_closure_from_frame()
829 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_CE(call->This), NULL); in zend_closure_from_frame()