- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.27
- Fatal error: Namespace declaration statement has to be the very first statement in the script in /in/rRVPH on line 6
Process exited with code 255.
<?php
echo error_reporting(), "\n";
error_reporting(-1);
namespace one {
function assert($assertion, $description) {
echo __FUNCTION__, "\n";
assert($assertion, $description);
}
}
namespace two {
use function one\assert;
assert('1 == true');
assert('true == false');
}
namespace three {
assert('1 == true');
assert('true == false');
}