Lines Matching refs:retval_ptr
4381 zval *retval_ref, *retval_ptr; variable
4383 retval_ref = retval_ptr = GET_OP1_ZVAL_PTR_UNDEF(BP_VAR_R);
4386 ZVAL_COPY(EX_VAR(opline->result.var), retval_ptr);
4387 retval_ref = retval_ptr = EX_VAR(opline->result.var);
4389 if (UNEXPECTED(Z_TYPE_P(retval_ptr) == IS_INDIRECT)) {
4390 retval_ref = retval_ptr = Z_INDIRECT_P(retval_ptr);
4392 ZVAL_DEREF(retval_ptr);
4394 ZVAL_DEREF(retval_ptr);
4397 if (EXPECTED(ZEND_TYPE_CONTAINS_CODE(ret_info->type, Z_TYPE_P(retval_ptr)))) {
4401 if (OP1_TYPE == IS_CV && UNEXPECTED(Z_ISUNDEF_P(retval_ptr))) {
4403 retval_ref = retval_ptr = ZVAL_UNDEFINED_OP1();
4414 if (UNEXPECTED(retval_ref != retval_ptr)) {
4423 ZVAL_COPY(retval_ref, retval_ptr);
4425 retval_ptr = retval_ref;
4430 if (UNEXPECTED(!zend_check_type_slow(&ret_info->type, retval_ptr, ref, cache_slot, 1, 0))) {
4431 zend_verify_return_error(EX(func), retval_ptr);
4449 zval *retval_ptr; variable
4453 retval_ptr = GET_OP1_ZVAL_PTR_UNDEF(BP_VAR_R);
4456 if (OP1_TYPE == IS_CV && UNEXPECTED(Z_TYPE_INFO_P(retval_ptr) == IS_UNDEF)) {
4458 retval_ptr = ZVAL_UNDEFINED_OP1();
4464 if (Z_REFCOUNTED_P(retval_ptr) && !Z_DELREF_P(retval_ptr)) {
4466 rc_dtor_func(Z_COUNTED_P(retval_ptr));
4471 ZVAL_COPY_VALUE(return_value, retval_ptr);
4479 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
4480 if (EXPECTED(!Z_OPT_ISREF_P(retval_ptr))) {
4482 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
4483 ZVAL_COPY_VALUE(return_value, retval_ptr);
4488 ZVAL_NULL(retval_ptr);
4491 Z_ADDREF_P(retval_ptr);
4494 retval_ptr = Z_REFVAL_P(retval_ptr);
4495 if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
4496 Z_ADDREF_P(retval_ptr);
4500 ZVAL_COPY_VALUE(return_value, retval_ptr);
4503 if (UNEXPECTED(Z_ISREF_P(retval_ptr))) {
4504 zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
4506 retval_ptr = Z_REFVAL_P(retval_ptr);
4507 ZVAL_COPY_VALUE(return_value, retval_ptr);
4510 } else if (Z_OPT_REFCOUNTED_P(retval_ptr)) {
4511 Z_ADDREF_P(retval_ptr);
4514 ZVAL_COPY_VALUE(return_value, retval_ptr);
4527 zval *retval_ptr; variable
4541 retval_ptr = GET_OP1_ZVAL_PTR(BP_VAR_R);
4545 if (OP1_TYPE == IS_VAR && UNEXPECTED(Z_ISREF_P(retval_ptr))) {
4546 ZVAL_COPY_VALUE(return_value, retval_ptr);
4550 ZVAL_NEW_REF(return_value, retval_ptr);
4552 Z_TRY_ADDREF_P(retval_ptr);
4558 retval_ptr = GET_OP1_ZVAL_PTR_PTR(BP_VAR_W);
4561 ZEND_ASSERT(retval_ptr != &EG(uninitialized_zval));
4562 if (opline->extended_value == ZEND_RETURNS_FUNCTION && !Z_ISREF_P(retval_ptr)) {
4565 ZVAL_NEW_REF(return_value, retval_ptr);
4574 if (Z_ISREF_P(retval_ptr)) {
4575 Z_ADDREF_P(retval_ptr);
4577 ZVAL_MAKE_REF_EX(retval_ptr, 2);
4579 ZVAL_REF(return_value, Z_REF_P(retval_ptr));