Arquivos
hhvm/hphp/test/quick/bad_setm.php
T
mwilliams 8f421ab193 Mark registers dirty before entering catch-traces
Otherwise we end up with bizarre stack corruption.
2013-06-28 10:33:51 -07:00

20 linhas
308 B
PHP

<?php
function test($a, $b, $c, $d, $e) {
$k = array();
foreach ($a as $id) {
$k[$id] = foo($id, $b, $c, $d, $e);
$k[$id] = foo($k[$id], $b);
}
}
function foo($a, $b) {
return $a ?: $b;
}
function main() {
test(array(array('foo'), array('bar'), array('baz')), null, 1, 2, 3);
}
main();