Skip to content

A string property passed by reference through an erased (mixed) receiver SIGSEGVs. #204

Closed

Description

@blacktrs

Summary

A string property passed by reference through an erased (mixed) receiver SIGSEGVs.

Repro

<?php
final class Bucket { public string $s = "x"; }
final class Sink { public function fs(string &$x): void { $x = $x . "abc"; } }
function feed(Sink $s, mixed $o): void { $s->fs($o->s); }
$c = new Bucket();
feed(new Sink(), $c);
echo $c->s, "\n";

Expected (php)

xabc

Actual (manticore 1470fdbc, Darwin arm64)


[exit code 139 — SIGSEGV]

Tracking

Known-bug repro: tests/aot/repro/crash/byref_string_prop_erased_receiver.php — bash tests/aot/xfail.sh -k byref_string_prop_erased_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 12, 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