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()
144 if (!zend_valid_closure_binding(closure, newthis, Z_OBJCE_P(newthis))) { in ZEND_METHOD()
150 …d_create_closure(&new_closure, &closure->func, Z_OBJCE_P(newthis), closure->called_scope, newthis); in ZEND_METHOD()
157 my_function.common.scope = Z_OBJCE_P(newthis); in ZEND_METHOD()
165 && (closure->func.common.scope != Z_OBJCE_P(newthis) in ZEND_METHOD()
202 static void do_closure_bind(zval *return_value, zval *zclosure, zval *newthis, zend_object *scope_o… in do_closure_bind() argument
220 if (!zend_valid_closure_binding(closure, newthis, ce)) { in do_closure_bind()
224 if (newthis) { in do_closure_bind()
225 called_scope = Z_OBJCE_P(newthis); in do_closure_bind()
230 zend_create_closure(return_value, &closure->func, ce, called_scope, newthis); in do_closure_bind()
236 zval *zclosure, *newthis; in ZEND_METHOD() local
242 Z_PARAM_OBJECT_OR_NULL(newthis) in ZEND_METHOD()
247 do_closure_bind(return_value, zclosure, newthis, scope_obj, scope_str); in ZEND_METHOD()
253 zval *newthis; in ZEND_METHOD() local
258 Z_PARAM_OBJECT_OR_NULL(newthis) in ZEND_METHOD()
263 do_closure_bind(return_value, getThis(), newthis, scope_obj, scope_str); in ZEND_METHOD()