You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
(array) of a value typed by an interface (Throwable or a user interface) answers a garbage array or crashes. #255
(array) of a value typed by an interface (Throwable or a user interface) answers a garbage array or crashes.
Repro
<?phpinterface I {}
class C implements I { public$a = 1; protected$b = 2; }
functionmk(): I { returnnewC; }
functionmt(): Throwable { returnnewRuntimeException("x"); }
echocount((array) mk()), "\n";
echocount((array) mt()), "\n";
Expected (php)
2
7
Actual (manticore fd82c7dd, Darwin arm64)
[exit code 139 — SIGSEGV]
Tracking
Known-bug repro: tests/aot/repro/wrong/object_cast_of_interface_typed_value.php — bash tests/aot/xfail.sh -k object_cast_of_interface_typed_value 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
Add repros #255 #256 #257
Compile and serve a Symfony app natively: ownership/inference fixes, …