f72684f07a
If we reload a value in an exit trace that was spilled in the main trace, a comment tells us that we reload it at the start of the exit trace. In fact the reload was inserted at the start of the main trace. Fixed the code to match the comment.
29 linhas
360 B
PHP
29 linhas
360 B
PHP
<?php
|
|
|
|
define('FIZ', 32);
|
|
|
|
class X {
|
|
const FOO = 1;
|
|
const BAR = FIZ;
|
|
const BAZ = FIZ;
|
|
const BOO = FIZ;
|
|
const BIZ = FIZ;
|
|
const FIZ = FIZ;
|
|
}
|
|
|
|
function foo($a, $b) {
|
|
var_dump($a, $b);
|
|
}
|
|
|
|
function f() { return FIZ; }
|
|
|
|
function test() {
|
|
foo(f(), array(X::FOO, X::BAZ,
|
|
X::BAR, X::BAZ,
|
|
X::BOO, X::BIZ));
|
|
}
|
|
|
|
test();
|
|
|
|
|