mirror of
https://github.com/php/php-src.git
synced 2024-09-29 22:06:09 +00:00
18 lines
202 B
PHP
18 lines
202 B
PHP
--TEST--
|
|
function that is conditionally defined at runtime should not cause compiler error
|
|
--FILE--
|
|
<?php
|
|
|
|
if (0) {
|
|
function foo() {
|
|
}
|
|
}
|
|
|
|
use function bar\foo;
|
|
|
|
echo "Done";
|
|
|
|
?>
|
|
--EXPECT--
|
|
Done
|