Skip to content

$m->f($n) on a mixed receiver where one implementer takes $n by value and another by-ref SIGSEGVs #16

Closed

Description

@blacktrs

Summary

$m->f($n) on a mixed receiver where one implementer takes $n by value and another by-ref SIGSEGVs.

Repro

<?php
final class V { public function f($n) { return $n; } }
final class R { public function f(&$n) { $n = 9; } }
function t(mixed $m): int { $n = 1; $m->f($n); return $n; }
echo t(new V()), t(new R()), "\n";

Expected (php 8.5)

19

Actual (manticore 10affa68, macOS arm64)


[exit code 139 — SIGSEGV]

Tracking

Known-bug repro: tests/aot/repro/crash/byref_param_mixed_receiver.php — bash tests/aot/xfail.sh -k byref_param_mixed_receiver 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
    crash
    on Oct 5, 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

    bugcrash

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions