php-src/Zend/tests/use_function/conditional_function_declaration.phpt
2013-08-29 17:16:18 +02:00

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