Lines Matching refs:retval_ptr
3788 zval *retval_ref, *retval_ptr; variable
3792 retval_ref = retval_ptr = GET_OP1_ZVAL_PTR(BP_VAR_R);
3795 ZVAL_COPY(EX_VAR(opline->result.var), retval_ptr);
3796 retval_ref = retval_ptr = EX_VAR(opline->result.var);
3798 if (UNEXPECTED(Z_TYPE_P(retval_ptr) == IS_INDIRECT)) {
3799 retval_ptr = Z_INDIRECT_P(retval_ptr);
3801 ZVAL_DEREF(retval_ptr);
3803 ZVAL_DEREF(retval_ptr);
3809 && !ZEND_SAME_FAKE_TYPE(ZEND_TYPE_CODE(ret_info->type), Z_TYPE_P(retval_ptr))
3811 && retval_ref != retval_ptr)
3818 ZVAL_COPY(retval_ref, retval_ptr);
3820 retval_ptr = retval_ref;
3822 zend_verify_return_type(EX(func), retval_ptr, CACHE_ADDR(opline->op2.num));
3831 zval *retval_ptr; variable
3835 retval_ptr = GET_OP1_ZVAL_PTR_UNDEF(BP_VAR_R);
3837 if (OP1_TYPE == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) {
3839 retval_ptr = GET_OP1_UNDEF_CV(retval_ptr, BP_VAR_R);
3852 ZVAL_COPY_VALUE(return_value, retval_ptr);
3859 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
3860 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) {
3861 ZVAL_COPY_VALUE(return_value, retval_ptr);
3863 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
3867 ZVAL_NULL(retval_ptr);
3872 retval_ptr = Z_REFVAL_P(retval_ptr);
3873 ZVAL_COPY(return_value, retval_ptr);
3876 ZVAL_COPY_VALUE(return_value, retval_ptr);
3879 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) {
3880 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
3882 retval_ptr = Z_REFVAL_P(retval_ptr);
3883 ZVAL_COPY_VALUE(return_value, retval_ptr);
3886 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
3887 Z_ADDREF_P(retval_ptr);
3890 ZVAL_COPY_VALUE(return_value, retval_ptr);
3900 zval *retval_ptr; variable
3911 retval_ptr = GET_OP1_ZVAL_PTR(BP_VAR_R);
3915 if (OP1_TYPE == IS_VAR && UNEXPECTED(Z_ISREF_P(retval_ptr))) {
3916 ZVAL_COPY_VALUE(EX(return_value), retval_ptr);
3920 ZVAL_NEW_REF(EX(return_value), retval_ptr);
3922 Z_TRY_ADDREF_P(retval_ptr);
3928 retval_ptr = GET_OP1_ZVAL_PTR_PTR(BP_VAR_W);
3931 if (retval_ptr == &EG(uninitialized_zval) ||
3932 (opline->extended_value == ZEND_RETURNS_FUNCTION && !Z_ISREF_P(retval_ptr))) {
3935 ZVAL_NEW_REF(EX(return_value), retval_ptr);
3944 if (Z_ISREF_P(retval_ptr)) {
3945 Z_ADDREF_P(retval_ptr);
3947 ZVAL_MAKE_REF_EX(retval_ptr, 2);
3949 ZVAL_REF(EX(return_value), Z_REF_P(retval_ptr));