Lines Matching refs:this_ptr
34 zval this_ptr; member
96 } else if (!is_fake_closure && !Z_ISUNDEF(closure->this_ptr) in zend_valid_closure_binding()
175 ZVAL_UNDEF(&fake_closure->this_ptr); in ZEND_METHOD()
434 if (Z_TYPE(lhs->this_ptr) != Z_TYPE(rhs->this_ptr)) { in zend_closure_compare()
438 if (Z_TYPE(lhs->this_ptr) == IS_OBJECT && Z_OBJ(lhs->this_ptr) != Z_OBJ(rhs->this_ptr)) { in zend_closure_compare()
501 return &closure->this_ptr; in zend_get_closure_this_ptr()
532 if (Z_TYPE(closure->this_ptr) != IS_UNDEF) { in zend_closure_free_storage()
533 zval_ptr_dtor(&closure->this_ptr); in zend_closure_free_storage()
557 closure->func.common.scope, closure->called_scope, &closure->this_ptr); in zend_closure_clone()
569 if (Z_TYPE(closure->this_ptr) != IS_UNDEF) { in zend_closure_get_closure()
570 *obj_ptr = Z_OBJ(closure->this_ptr); in zend_closure_get_closure()
642 if (Z_TYPE(closure->this_ptr) != IS_UNDEF) { in zend_closure_get_debug_info()
643 Z_ADDREF(closure->this_ptr); in zend_closure_get_debug_info()
644 zend_hash_update(debug_info, ZSTR_KNOWN(ZEND_STR_THIS), &closure->this_ptr); in zend_closure_get_debug_info()
687 *table = Z_TYPE(closure->this_ptr) != IS_NULL ? &closure->this_ptr : NULL; in zend_closure_get_gc()
688 *n = Z_TYPE(closure->this_ptr) != IS_NULL ? 1 : 0; in zend_closure_get_gc()
731 …n *func, zend_class_entry *scope, zend_class_entry *called_scope, zval *this_ptr, bool is_fake) /*… in zend_create_closure_ex() argument
740 if ((scope == NULL) && this_ptr && (Z_TYPE_P(this_ptr) != IS_UNDEF)) { in zend_create_closure_ex()
816 this_ptr = NULL; in zend_create_closure_ex()
821 ZVAL_UNDEF(&closure->this_ptr); in zend_create_closure_ex()
828 …if (this_ptr && Z_TYPE_P(this_ptr) == IS_OBJECT && (closure->func.common.fn_flags & ZEND_ACC_STATI… in zend_create_closure_ex()
829 ZVAL_OBJ_COPY(&closure->this_ptr, Z_OBJ_P(this_ptr)); in zend_create_closure_ex()
835 …*res, zend_function *func, zend_class_entry *scope, zend_class_entry *called_scope, zval *this_ptr) in zend_create_closure() argument
837 zend_create_closure_ex(res, func, scope, called_scope, this_ptr, in zend_create_closure()
841 …_function *func, zend_class_entry *scope, zend_class_entry *called_scope, zval *this_ptr) /* {{{ */ in zend_create_fake_closure() argument
845 zend_create_closure_ex(res, func, scope, called_scope, this_ptr, /* is_fake */ true); in zend_create_fake_closure()