Closed
Description
Description
The following code:
<?php
$statuses = array();
function oh($str) {
global $statuses;
$statuses[] = "$str";
return $str;
}
ob_start("oh", 3);
ob_flush();
echo "no";
ob_clean();
echo "yes!\n";
echo "no";
ob_end_clean();
print_r($statuses);
?>
Resulted in this output:
yes!
noArray
(
[0] =>
[1] => no
[2] => yes!
no
[3] =>
)
But I expected this output instead:
yes!
Array
(
[0] =>
[1] => no
[2] => yes!
[3] => no
)
To reproduce: enable JIT
PHP Version
nightly
Operating System
ubuntu 22.04