Lines Matching refs:retval_ptr

4579 	zval *retval_ptr;  in ZEND_RETURN_SPEC_CONST_HANDLER()  local
4582 retval_ptr = RT_CONSTANT(opline, opline->op1); in ZEND_RETURN_SPEC_CONST_HANDLER()
4585 if (IS_CONST == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) { in ZEND_RETURN_SPEC_CONST_HANDLER()
4587 retval_ptr = ZVAL_UNDEFINED_OP1(); in ZEND_RETURN_SPEC_CONST_HANDLER()
4593 if (Z_REFCOUNTED_P(retval_ptr) && !Z_DELREF_P(retval_ptr)) { in ZEND_RETURN_SPEC_CONST_HANDLER()
4595 rc_dtor_func(Z_COUNTED_P(retval_ptr)); in ZEND_RETURN_SPEC_CONST_HANDLER()
4600 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4608 if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_CONST_HANDLER()
4609 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) { in ZEND_RETURN_SPEC_CONST_HANDLER()
4611 zend_refcounted *ref = Z_COUNTED_P(retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4612 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4617 ZVAL_NULL(retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4620 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4623 retval_ptr = Z_REFVAL_P(retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4624 if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_CONST_HANDLER()
4625 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4629 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4632 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) { in ZEND_RETURN_SPEC_CONST_HANDLER()
4633 zend_refcounted *ref = Z_COUNTED_P(retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4635 retval_ptr = Z_REFVAL_P(retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4636 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4639 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_CONST_HANDLER()
4640 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4643 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_CONST_HANDLER()
4656 zval *retval_ptr; in ZEND_RETURN_SPEC_OBSERVER_HANDLER() local
4660 retval_ptr = get_zval_ptr_undef(opline->op1_type, opline->op1, BP_VAR_R); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4663 if (opline->op1_type == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) { in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4665 retval_ptr = ZVAL_UNDEFINED_OP1(); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4671 if (Z_REFCOUNTED_P(retval_ptr) && !Z_DELREF_P(retval_ptr)) { in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4673 rc_dtor_func(Z_COUNTED_P(retval_ptr)); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4678 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4686 if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4687 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) { in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4689 zend_refcounted *ref = Z_COUNTED_P(retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4690 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4695 ZVAL_NULL(retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4698 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4701 retval_ptr = Z_REFVAL_P(retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4702 if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4703 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4707 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4710 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) { in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4711 zend_refcounted *ref = Z_COUNTED_P(retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4713 retval_ptr = Z_REFVAL_P(retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4714 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4717 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4718 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4721 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_OBSERVER_HANDLER()
4734 zval *retval_ptr; in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER() local
4747 retval_ptr = RT_CONSTANT(opline, opline->op1); in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4751 if (IS_CONST == IS_VAR && UNEXPECTED(Z_ISREF_P(retval_ptr))) { in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4752 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4756 ZVAL_NEW_REF(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4758 Z_TRY_ADDREF_P(retval_ptr); in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4764 retval_ptr = zend_get_bad_ptr(); in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4767 ZEND_ASSERT(retval_ptr != &EG(uninitialized_zval)); in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4768 if (opline->extended_value == ZEND_RETURNS_FUNCTION && !Z_ISREF_P(retval_ptr)) { in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4771 ZVAL_NEW_REF(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4780 if (Z_ISREF_P(retval_ptr)) { in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4781 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4783 ZVAL_MAKE_REF_EX(retval_ptr, 2); in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4785 ZVAL_REF(return_value, Z_REF_P(retval_ptr)); in ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER()
4797 zval *retval_ptr; in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER() local
4811 retval_ptr = get_zval_ptr(opline->op1_type, opline->op1, BP_VAR_R); in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4815 if (opline->op1_type == IS_VAR && UNEXPECTED(Z_ISREF_P(retval_ptr))) { in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4816 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4820 ZVAL_NEW_REF(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4822 Z_TRY_ADDREF_P(retval_ptr); in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4828 retval_ptr = get_zval_ptr_ptr(opline->op1_type, opline->op1, BP_VAR_W); in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4831 ZEND_ASSERT(retval_ptr != &EG(uninitialized_zval)); in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4832 if (opline->extended_value == ZEND_RETURNS_FUNCTION && !Z_ISREF_P(retval_ptr)) { in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4835 ZVAL_NEW_REF(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4844 if (Z_ISREF_P(retval_ptr)) { in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4845 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4847 ZVAL_MAKE_REF_EX(retval_ptr, 2); in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
4849 ZVAL_REF(return_value, Z_REF_P(retval_ptr)); in ZEND_RETURN_BY_REF_SPEC_OBSERVER_HANDLER()
10753 zval *retval_ref, *retval_ptr; in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10755 retval_ref = retval_ptr = RT_CONSTANT(opline, opline->op1); in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10758 ZVAL_COPY(EX_VAR(opline->result.var), retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10759 retval_ref = retval_ptr = EX_VAR(opline->result.var); in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10761 if (UNEXPECTED(Z_TYPE_P(retval_ptr) == IS_INDIRECT)) { in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10762 retval_ref = retval_ptr = Z_INDIRECT_P(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10764 ZVAL_DEREF(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10766 ZVAL_DEREF(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10769 if (EXPECTED(ZEND_TYPE_CONTAINS_CODE(ret_info->type, Z_TYPE_P(retval_ptr)))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10773 if (IS_CONST == IS_CV && UNEXPECTED(Z_ISUNDEF_P(retval_ptr))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10775 retval_ref = retval_ptr = ZVAL_UNDEFINED_OP1(); in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10786 if (UNEXPECTED(retval_ref != retval_ptr)) { in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10795 ZVAL_COPY(retval_ref, retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10797 retval_ptr = retval_ref; in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10802 if (UNEXPECTED(!zend_check_type_slow(&ret_info->type, retval_ptr, ref, cache_slot, 1, 0))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
10803 zend_verify_return_error(EX(func), retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CONST_UNUSED_HANDLER()
19862 zval *retval_ptr; in ZEND_RETURN_SPEC_TMP_HANDLER() local
19865 retval_ptr = _get_zval_ptr_tmp(opline->op1.var EXECUTE_DATA_CC); in ZEND_RETURN_SPEC_TMP_HANDLER()
19868 if (IS_TMP_VAR == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) { in ZEND_RETURN_SPEC_TMP_HANDLER()
19870 retval_ptr = ZVAL_UNDEFINED_OP1(); in ZEND_RETURN_SPEC_TMP_HANDLER()
19876 if (Z_REFCOUNTED_P(retval_ptr) && !Z_DELREF_P(retval_ptr)) { in ZEND_RETURN_SPEC_TMP_HANDLER()
19878 rc_dtor_func(Z_COUNTED_P(retval_ptr)); in ZEND_RETURN_SPEC_TMP_HANDLER()
19883 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19891 if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_TMP_HANDLER()
19892 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) { in ZEND_RETURN_SPEC_TMP_HANDLER()
19894 zend_refcounted *ref = Z_COUNTED_P(retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19895 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19900 ZVAL_NULL(retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19903 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19906 retval_ptr = Z_REFVAL_P(retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19907 if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_TMP_HANDLER()
19908 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19912 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19915 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) { in ZEND_RETURN_SPEC_TMP_HANDLER()
19916 zend_refcounted *ref = Z_COUNTED_P(retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19918 retval_ptr = Z_REFVAL_P(retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19919 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19922 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_TMP_HANDLER()
19923 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19926 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_TMP_HANDLER()
19939 zval *retval_ptr; in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER() local
19952 retval_ptr = _get_zval_ptr_tmp(opline->op1.var EXECUTE_DATA_CC); in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19956 if (IS_TMP_VAR == IS_VAR && UNEXPECTED(Z_ISREF_P(retval_ptr))) { in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19957 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19961 ZVAL_NEW_REF(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19963 Z_TRY_ADDREF_P(retval_ptr); in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19969 retval_ptr = zend_get_bad_ptr(); in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19972 ZEND_ASSERT(retval_ptr != &EG(uninitialized_zval)); in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19973 if (opline->extended_value == ZEND_RETURNS_FUNCTION && !Z_ISREF_P(retval_ptr)) { in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19976 ZVAL_NEW_REF(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19985 if (Z_ISREF_P(retval_ptr)) { in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19986 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19988 ZVAL_MAKE_REF_EX(retval_ptr, 2); in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
19990 ZVAL_REF(return_value, Z_REF_P(retval_ptr)); in ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER()
21490 zval *retval_ref, *retval_ptr; in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21492 retval_ref = retval_ptr = _get_zval_ptr_tmp(opline->op1.var EXECUTE_DATA_CC); in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21495 ZVAL_COPY(EX_VAR(opline->result.var), retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21496 retval_ref = retval_ptr = EX_VAR(opline->result.var); in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21498 if (UNEXPECTED(Z_TYPE_P(retval_ptr) == IS_INDIRECT)) { in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21499 retval_ref = retval_ptr = Z_INDIRECT_P(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21501 ZVAL_DEREF(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21503 ZVAL_DEREF(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21506 if (EXPECTED(ZEND_TYPE_CONTAINS_CODE(ret_info->type, Z_TYPE_P(retval_ptr)))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21510 if (IS_TMP_VAR == IS_CV && UNEXPECTED(Z_ISUNDEF_P(retval_ptr))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21512 retval_ref = retval_ptr = ZVAL_UNDEFINED_OP1(); in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21523 if (UNEXPECTED(retval_ref != retval_ptr)) { in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21532 ZVAL_COPY(retval_ref, retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21534 retval_ptr = retval_ref; in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21539 if (UNEXPECTED(!zend_check_type_slow(&ret_info->type, retval_ptr, ref, cache_slot, 1, 0))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
21540 zend_verify_return_error(EX(func), retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER()
22529 zval *retval_ptr; in ZEND_RETURN_SPEC_VAR_HANDLER() local
22532 retval_ptr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_RETURN_SPEC_VAR_HANDLER()
22535 if (IS_VAR == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) { in ZEND_RETURN_SPEC_VAR_HANDLER()
22537 retval_ptr = ZVAL_UNDEFINED_OP1(); in ZEND_RETURN_SPEC_VAR_HANDLER()
22543 if (Z_REFCOUNTED_P(retval_ptr) && !Z_DELREF_P(retval_ptr)) { in ZEND_RETURN_SPEC_VAR_HANDLER()
22545 rc_dtor_func(Z_COUNTED_P(retval_ptr)); in ZEND_RETURN_SPEC_VAR_HANDLER()
22550 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22558 if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_VAR_HANDLER()
22559 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) { in ZEND_RETURN_SPEC_VAR_HANDLER()
22561 zend_refcounted *ref = Z_COUNTED_P(retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22562 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22567 ZVAL_NULL(retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22570 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22573 retval_ptr = Z_REFVAL_P(retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22574 if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_VAR_HANDLER()
22575 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22579 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22582 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) { in ZEND_RETURN_SPEC_VAR_HANDLER()
22583 zend_refcounted *ref = Z_COUNTED_P(retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22585 retval_ptr = Z_REFVAL_P(retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22586 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22589 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_VAR_HANDLER()
22590 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22593 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_VAR_HANDLER()
22606 zval *retval_ptr; in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER() local
22619 retval_ptr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22623 if (IS_VAR == IS_VAR && UNEXPECTED(Z_ISREF_P(retval_ptr))) { in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22624 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22628 ZVAL_NEW_REF(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22630 Z_TRY_ADDREF_P(retval_ptr); in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22636 retval_ptr = _get_zval_ptr_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22639 ZEND_ASSERT(retval_ptr != &EG(uninitialized_zval)); in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22640 if (opline->extended_value == ZEND_RETURNS_FUNCTION && !Z_ISREF_P(retval_ptr)) { in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22643 ZVAL_NEW_REF(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22652 if (Z_ISREF_P(retval_ptr)) { in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22653 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22655 ZVAL_MAKE_REF_EX(retval_ptr, 2); in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
22657 ZVAL_REF(return_value, Z_REF_P(retval_ptr)); in ZEND_RETURN_BY_REF_SPEC_VAR_HANDLER()
29966 zval *retval_ref, *retval_ptr; in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
29968 retval_ref = retval_ptr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
29971 ZVAL_COPY(EX_VAR(opline->result.var), retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
29972 retval_ref = retval_ptr = EX_VAR(opline->result.var); in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
29974 if (UNEXPECTED(Z_TYPE_P(retval_ptr) == IS_INDIRECT)) { in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
29975 retval_ref = retval_ptr = Z_INDIRECT_P(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
29977 ZVAL_DEREF(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
29979 ZVAL_DEREF(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
29982 if (EXPECTED(ZEND_TYPE_CONTAINS_CODE(ret_info->type, Z_TYPE_P(retval_ptr)))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
29986 if (IS_VAR == IS_CV && UNEXPECTED(Z_ISUNDEF_P(retval_ptr))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
29988 retval_ref = retval_ptr = ZVAL_UNDEFINED_OP1(); in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
29999 if (UNEXPECTED(retval_ref != retval_ptr)) { in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
30008 ZVAL_COPY(retval_ref, retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
30010 retval_ptr = retval_ref; in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
30015 if (UNEXPECTED(!zend_check_type_slow(&ret_info->type, retval_ptr, ref, cache_slot, 1, 0))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
30016 zend_verify_return_error(EX(func), retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_VAR_UNUSED_HANDLER()
37756 zval *retval_ref, *retval_ptr; in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37758 retval_ref = retval_ptr = NULL; in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37761 ZVAL_COPY(EX_VAR(opline->result.var), retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37762 retval_ref = retval_ptr = EX_VAR(opline->result.var); in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37764 if (UNEXPECTED(Z_TYPE_P(retval_ptr) == IS_INDIRECT)) { in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37765 retval_ref = retval_ptr = Z_INDIRECT_P(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37767 ZVAL_DEREF(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37769 ZVAL_DEREF(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37772 if (EXPECTED(ZEND_TYPE_CONTAINS_CODE(ret_info->type, Z_TYPE_P(retval_ptr)))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37776 if (IS_UNUSED == IS_CV && UNEXPECTED(Z_ISUNDEF_P(retval_ptr))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37778 retval_ref = retval_ptr = ZVAL_UNDEFINED_OP1(); in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37789 if (UNEXPECTED(retval_ref != retval_ptr)) { in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37798 ZVAL_COPY(retval_ref, retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37800 retval_ptr = retval_ref; in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37805 if (UNEXPECTED(!zend_check_type_slow(&ret_info->type, retval_ptr, ref, cache_slot, 1, 0))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
37806 zend_verify_return_error(EX(func), retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_UNUSED_UNUSED_HANDLER()
40641 zval *retval_ptr; in ZEND_RETURN_SPEC_CV_HANDLER() local
40644 retval_ptr = EX_VAR(opline->op1.var); in ZEND_RETURN_SPEC_CV_HANDLER()
40647 if (IS_CV == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) { in ZEND_RETURN_SPEC_CV_HANDLER()
40649 retval_ptr = ZVAL_UNDEFINED_OP1(); in ZEND_RETURN_SPEC_CV_HANDLER()
40655 if (Z_REFCOUNTED_P(retval_ptr) && !Z_DELREF_P(retval_ptr)) { in ZEND_RETURN_SPEC_CV_HANDLER()
40657 rc_dtor_func(Z_COUNTED_P(retval_ptr)); in ZEND_RETURN_SPEC_CV_HANDLER()
40662 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40670 if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_CV_HANDLER()
40671 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) { in ZEND_RETURN_SPEC_CV_HANDLER()
40673 zend_refcounted *ref = Z_COUNTED_P(retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40674 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40679 ZVAL_NULL(retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40682 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40685 retval_ptr = Z_REFVAL_P(retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40686 if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_CV_HANDLER()
40687 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40691 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40694 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) { in ZEND_RETURN_SPEC_CV_HANDLER()
40695 zend_refcounted *ref = Z_COUNTED_P(retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40697 retval_ptr = Z_REFVAL_P(retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40698 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40701 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) { in ZEND_RETURN_SPEC_CV_HANDLER()
40702 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40705 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_SPEC_CV_HANDLER()
40718 zval *retval_ptr; in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER() local
40731 retval_ptr = _get_zval_ptr_cv_BP_VAR_R(opline->op1.var EXECUTE_DATA_CC); in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40735 if (IS_CV == IS_VAR && UNEXPECTED(Z_ISREF_P(retval_ptr))) { in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40736 ZVAL_COPY_VALUE(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40740 ZVAL_NEW_REF(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40742 Z_TRY_ADDREF_P(retval_ptr); in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40748 retval_ptr = _get_zval_ptr_cv_BP_VAR_W(opline->op1.var EXECUTE_DATA_CC); in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40751 ZEND_ASSERT(retval_ptr != &EG(uninitialized_zval)); in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40752 if (opline->extended_value == ZEND_RETURNS_FUNCTION && !Z_ISREF_P(retval_ptr)) { in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40755 ZVAL_NEW_REF(return_value, retval_ptr); in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40764 if (Z_ISREF_P(retval_ptr)) { in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40765 Z_ADDREF_P(retval_ptr); in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40767 ZVAL_MAKE_REF_EX(retval_ptr, 2); in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
40769 ZVAL_REF(return_value, Z_REF_P(retval_ptr)); in ZEND_RETURN_BY_REF_SPEC_CV_HANDLER()
50557 zval *retval_ref, *retval_ptr; in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50559 retval_ref = retval_ptr = EX_VAR(opline->op1.var); in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50562 ZVAL_COPY(EX_VAR(opline->result.var), retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50563 retval_ref = retval_ptr = EX_VAR(opline->result.var); in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50565 if (UNEXPECTED(Z_TYPE_P(retval_ptr) == IS_INDIRECT)) { in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50566 retval_ref = retval_ptr = Z_INDIRECT_P(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50568 ZVAL_DEREF(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50570 ZVAL_DEREF(retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50573 if (EXPECTED(ZEND_TYPE_CONTAINS_CODE(ret_info->type, Z_TYPE_P(retval_ptr)))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50577 if (IS_CV == IS_CV && UNEXPECTED(Z_ISUNDEF_P(retval_ptr))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50579 retval_ref = retval_ptr = ZVAL_UNDEFINED_OP1(); in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50590 if (UNEXPECTED(retval_ref != retval_ptr)) { in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50599 ZVAL_COPY(retval_ref, retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50601 retval_ptr = retval_ref; in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50606 if (UNEXPECTED(!zend_check_type_slow(&ret_info->type, retval_ptr, ref, cache_slot, 1, 0))) { in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
50607 zend_verify_return_error(EX(func), retval_ptr); in ZEND_VERIFY_RETURN_TYPE_SPEC_CV_UNUSED_HANDLER()
59117 zval *retval_ptr; local
59120 retval_ptr = RT_CONSTANT(opline, opline->op1);
59123 if (IS_CONST == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) {
59125 retval_ptr = ZVAL_UNDEFINED_OP1();
59131 if (Z_REFCOUNTED_P(retval_ptr) && !Z_DELREF_P(retval_ptr)) {
59133 rc_dtor_func(Z_COUNTED_P(retval_ptr));
59138 ZVAL_COPY_VALUE(return_value, retval_ptr);
59146 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
59147 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) {
59149 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
59150 ZVAL_COPY_VALUE(return_value, retval_ptr);
59155 ZVAL_NULL(retval_ptr);
59158 Z_ADDREF_P(retval_ptr);
59161 retval_ptr = Z_REFVAL_P(retval_ptr);
59162 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
59163 Z_ADDREF_P(retval_ptr);
59167 ZVAL_COPY_VALUE(return_value, retval_ptr);
59170 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) {
59171 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
59173 retval_ptr = Z_REFVAL_P(retval_ptr);
59174 ZVAL_COPY_VALUE(return_value, retval_ptr);
59177 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
59178 Z_ADDREF_P(retval_ptr);
59181 ZVAL_COPY_VALUE(return_value, retval_ptr);
59196 zval *retval_ptr; local
59200 retval_ptr = get_zval_ptr_undef(opline->op1_type, opline->op1, BP_VAR_R);
59203 if (opline->op1_type == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) {
59205 retval_ptr = ZVAL_UNDEFINED_OP1();
59211 if (Z_REFCOUNTED_P(retval_ptr) && !Z_DELREF_P(retval_ptr)) {
59213 rc_dtor_func(Z_COUNTED_P(retval_ptr));
59218 ZVAL_COPY_VALUE(return_value, retval_ptr);
59226 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
59227 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) {
59229 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
59230 ZVAL_COPY_VALUE(return_value, retval_ptr);
59235 ZVAL_NULL(retval_ptr);
59238 Z_ADDREF_P(retval_ptr);
59241 retval_ptr = Z_REFVAL_P(retval_ptr);
59242 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
59243 Z_ADDREF_P(retval_ptr);
59247 ZVAL_COPY_VALUE(return_value, retval_ptr);
59250 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) {
59251 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
59253 retval_ptr = Z_REFVAL_P(retval_ptr);
59254 ZVAL_COPY_VALUE(return_value, retval_ptr);
59257 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
59258 Z_ADDREF_P(retval_ptr);
59261 ZVAL_COPY_VALUE(return_value, retval_ptr);
61111 zval *retval_ptr; local
61114 retval_ptr = _get_zval_ptr_tmp(opline->op1.var EXECUTE_DATA_CC);
61117 if (IS_TMP_VAR == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) {
61119 retval_ptr = ZVAL_UNDEFINED_OP1();
61125 if (Z_REFCOUNTED_P(retval_ptr) && !Z_DELREF_P(retval_ptr)) {
61127 rc_dtor_func(Z_COUNTED_P(retval_ptr));
61132 ZVAL_COPY_VALUE(return_value, retval_ptr);
61140 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
61141 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) {
61143 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
61144 ZVAL_COPY_VALUE(return_value, retval_ptr);
61149 ZVAL_NULL(retval_ptr);
61152 Z_ADDREF_P(retval_ptr);
61155 retval_ptr = Z_REFVAL_P(retval_ptr);
61156 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
61157 Z_ADDREF_P(retval_ptr);
61161 ZVAL_COPY_VALUE(return_value, retval_ptr);
61164 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) {
61165 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
61167 retval_ptr = Z_REFVAL_P(retval_ptr);
61168 ZVAL_COPY_VALUE(return_value, retval_ptr);
61171 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
61172 Z_ADDREF_P(retval_ptr);
61175 ZVAL_COPY_VALUE(return_value, retval_ptr);
61475 zval *retval_ptr; local
61478 retval_ptr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC);
61481 if (IS_VAR == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) {
61483 retval_ptr = ZVAL_UNDEFINED_OP1();
61489 if (Z_REFCOUNTED_P(retval_ptr) && !Z_DELREF_P(retval_ptr)) {
61491 rc_dtor_func(Z_COUNTED_P(retval_ptr));
61496 ZVAL_COPY_VALUE(return_value, retval_ptr);
61504 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
61505 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) {
61507 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
61508 ZVAL_COPY_VALUE(return_value, retval_ptr);
61513 ZVAL_NULL(retval_ptr);
61516 Z_ADDREF_P(retval_ptr);
61519 retval_ptr = Z_REFVAL_P(retval_ptr);
61520 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
61521 Z_ADDREF_P(retval_ptr);
61525 ZVAL_COPY_VALUE(return_value, retval_ptr);
61528 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) {
61529 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
61531 retval_ptr = Z_REFVAL_P(retval_ptr);
61532 ZVAL_COPY_VALUE(return_value, retval_ptr);
61535 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
61536 Z_ADDREF_P(retval_ptr);
61539 ZVAL_COPY_VALUE(return_value, retval_ptr);
62889 zval *retval_ptr; local
62892 retval_ptr = EX_VAR(opline->op1.var);
62895 if (IS_CV == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) {
62897 retval_ptr = ZVAL_UNDEFINED_OP1();
62903 if (Z_REFCOUNTED_P(retval_ptr) && !Z_DELREF_P(retval_ptr)) {
62905 rc_dtor_func(Z_COUNTED_P(retval_ptr));
62910 ZVAL_COPY_VALUE(return_value, retval_ptr);
62918 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
62919 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) {
62921 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
62922 ZVAL_COPY_VALUE(return_value, retval_ptr);
62927 ZVAL_NULL(retval_ptr);
62930 Z_ADDREF_P(retval_ptr);
62933 retval_ptr = Z_REFVAL_P(retval_ptr);
62934 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
62935 Z_ADDREF_P(retval_ptr);
62939 ZVAL_COPY_VALUE(return_value, retval_ptr);
62942 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) {
62943 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
62945 retval_ptr = Z_REFVAL_P(retval_ptr);
62946 ZVAL_COPY_VALUE(return_value, retval_ptr);
62949 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
62950 Z_ADDREF_P(retval_ptr);
62953 ZVAL_COPY_VALUE(return_value, retval_ptr);