Skip to content

var_dump() of a void function call prints int(0) instead of NULL. #235

Closed

Description

@blacktrs

Summary

var_dump() of a void function call prints int(0) instead of NULL.

Repro

<?php
function f(): void {}
var_dump(f());

Expected (php)

NULL

Actual (manticore 48828b70, Darwin arm64)

int(0)

Tracking

Known-bug repro: tests/aot/repro/wrong/var_dump_void_call_is_int_zero.php — bash tests/aot/xfail.sh -k var_dump_void_call_is_int_zero reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.

Activity

  1. added
    bug
    wrong-answer
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugwrong-answer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions