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_shift on a large array captured by value in a closure frees a pointer malloc never returned at exit. #275
array_shift on a large array captured by value in a closure frees a pointer malloc never returned at exit.
Repro
<?php$l = range(0, 2500);
$f = function () use ($l) {
array_shift($l);
returncount($l);
};
echo$f(), "\n";
Expected (php)
2500
Actual (manticore 4172af1b, Darwin arm64)
2500
[exit code 134]
Tracking
Known-bug repro: tests/aot/repro/crash/array_shift_captured_large.php — bash tests/aot/xfail.sh -k array_shift_captured_large 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
Repro: array_shift on a large array captured by value aborts at exit (#…
Closure captures the body writes through are copied into an owning lo…