Lines Matching refs:newthis
68 zend_closure *closure, zval *newthis, zend_class_entry *scope) /* {{{ */ in zend_valid_closure_binding() argument
72 if (newthis) { in zend_valid_closure_binding()
79 !instanceof_function(Z_OBJCE_P(newthis), func->common.scope)) { in zend_valid_closure_binding()
84 ZSTR_VAL(Z_OBJCE_P(newthis)->name)); in zend_valid_closure_binding()
120 zval *newthis, closure_result; in ZEND_METHOD() local
131 Z_PARAM_OBJECT(newthis) in ZEND_METHOD()
137 newobj = Z_OBJ_P(newthis); in ZEND_METHOD()
140 if (!zend_valid_closure_binding(closure, newthis, newclass)) { in ZEND_METHOD()
154 zend_create_closure(&new_closure, &closure->func, newclass, closure->called_scope, newthis); in ZEND_METHOD()
216 static void do_closure_bind(zval *return_value, zval *zclosure, zval *newthis, zend_object *scope_o… in do_closure_bind() argument
234 if (!zend_valid_closure_binding(closure, newthis, ce)) { in do_closure_bind()
238 if (newthis) { in do_closure_bind()
239 called_scope = Z_OBJCE_P(newthis); in do_closure_bind()
244 zend_create_closure(return_value, &closure->func, ce, called_scope, newthis); in do_closure_bind()
250 zval *zclosure, *newthis; in ZEND_METHOD() local
256 Z_PARAM_OBJECT_OR_NULL(newthis) in ZEND_METHOD()
261 do_closure_bind(return_value, zclosure, newthis, scope_obj, scope_str); in ZEND_METHOD()
267 zval *newthis; in ZEND_METHOD() local
272 Z_PARAM_OBJECT_OR_NULL(newthis) in ZEND_METHOD()
277 do_closure_bind(return_value, getThis(), newthis, scope_obj, scope_str); in ZEND_METHOD()