Add test for conditional function declaration

This commit is contained in:
Igor Wiedler 2013-08-29 17:15:36 +02:00
parent 6263f221ff
commit e14a769c56

View File

@ -0,0 +1,17 @@
--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