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 (is_fake_closure && func->common.scope in zend_valid_closure_binding()
99 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding()
102 ZSTR_VAL(scope->name)); in zend_valid_closure_binding()
106 if (is_fake_closure && scope != func->common.scope) { in zend_valid_closure_binding()
107 if (func->common.scope == NULL) { in zend_valid_closure_binding()
154 my_function.common.scope = Z_OBJCE_P(newthis); in ZEND_METHOD()
162 && (closure->func.common.scope != Z_OBJCE_P(newthis) in ZEND_METHOD()
223 ce = closure->func.common.scope; in ZEND_METHOD()
232 ce = closure->func.common.scope; in ZEND_METHOD()
261 EX(func)->internal_function.scope->__callstatic : EX(func)->internal_function.scope->__call; in ZEND_NAMED_FUNCTION()
302 if (!mptr->common.scope) { in zend_create_closure_from_callable()
306 if (!mptr->common.scope->__callstatic) { in zend_create_closure_from_callable()
310 if (!mptr->common.scope->__call) { in zend_create_closure_from_callable()
320 call.scope = mptr->common.scope; in zend_create_closure_from_callable()
328 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, &instance); in zend_create_closure_from_callable()
330 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, NULL); in zend_create_closure_from_callable()
405 invoke->internal_function.scope = zend_ce_closure; in zend_get_closure_invoke_method()
509 closure->func.common.scope, closure->called_scope, &closure->this_ptr); in zend_closure_clone()
687 ZEND_API void zend_create_closure(zval *res, zend_function *func, zend_class_entry *scope, zend_cla… in zend_create_closure() argument
695 if ((scope == NULL) && this_ptr && (Z_TYPE_P(this_ptr) != IS_UNDEF)) { in zend_create_closure()
698 scope = zend_ce_closure; in zend_create_closure()
715 || func->common.scope != scope in zend_create_closure()
722 && (func->common.scope == scope || in zend_create_closure()
726 if (func->common.scope != scope) { in zend_create_closure()
727 func->common.scope = scope; in zend_create_closure()
759 if (!func->common.scope) { in zend_create_closure()
762 scope = NULL; in zend_create_closure()
769 closure->func.common.scope = scope; in zend_create_closure()
771 if (scope) { in zend_create_closure()
781 ZEND_API void zend_create_fake_closure(zval *res, zend_function *func, zend_class_entry *scope, zen… in zend_create_fake_closure() argument
785 zend_create_closure(res, func, scope, called_scope, this_ptr); in zend_create_fake_closure()