Lines Matching refs:newthis
73 zend_closure *closure, zval *newthis, zend_class_entry *scope) /* {{{ */ in zend_valid_closure_binding() argument
77 if (newthis) { in zend_valid_closure_binding()
84 !instanceof_function(Z_OBJCE_P(newthis), func->common.scope)) { in zend_valid_closure_binding()
89 ZSTR_VAL(Z_OBJCE_P(newthis)->name)); in zend_valid_closure_binding()
125 zval *newthis, closure_result; in ZEND_METHOD() local
136 Z_PARAM_OBJECT(newthis) in ZEND_METHOD()
142 newobj = Z_OBJ_P(newthis); in ZEND_METHOD()
145 if (!zend_valid_closure_binding(closure, newthis, newclass)) { in ZEND_METHOD()
159 zend_create_closure(&new_closure, &closure->func, newclass, closure->called_scope, newthis); in ZEND_METHOD()
221 static void do_closure_bind(zval *return_value, zval *zclosure, zval *newthis, zend_object *scope_o… in do_closure_bind() argument
239 if (!zend_valid_closure_binding(closure, newthis, ce)) { in do_closure_bind()
243 if (newthis) { in do_closure_bind()
244 called_scope = Z_OBJCE_P(newthis); in do_closure_bind()
249 zend_create_closure(return_value, &closure->func, ce, called_scope, newthis); in do_closure_bind()
255 zval *zclosure, *newthis; in ZEND_METHOD() local
261 Z_PARAM_OBJECT_OR_NULL(newthis) in ZEND_METHOD()
266 do_closure_bind(return_value, zclosure, newthis, scope_obj, scope_str); in ZEND_METHOD()
272 zval *newthis; in ZEND_METHOD() local
277 Z_PARAM_OBJECT_OR_NULL(newthis) in ZEND_METHOD()
282 do_closure_bind(return_value, getThis(), newthis, scope_obj, scope_str); in ZEND_METHOD()