if (!function_exists('f')) {
function f() {
echo 'test2';
}
}
When the option shuffle_stmts is enabled, the definition of f() in b.php will be appear out of the if, therefore the php interpreter will try to define the function in "parse" time instead of execution time, and this will throw the error below:
PHP Fatal error: Cannot redeclare f() in b.php on line 2
Maybe we can just add an if (true) in these situations.
If I have this code:
a.php:
b.php:
When the option
shuffle_stmts
is enabled, the definition off()
inb.php
will be appear out of theif
, therefore the php interpreter will try to define the function in "parse" time instead of execution time, and this will throw the error below:Maybe we can just add an
if (true)
in these situations.