summaryrefslogtreecommitdiff
path: root/Zend/tests/use_function/conditional_function_declaration.phpt
blob: ccfb96103a6b6c24b8a5d31849dc14b20cba7820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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