conditional_function_declaration.phpt 202 B

1234567891011121314151617
  1. --TEST--
  2. function that is conditionally defined at runtime should not cause compiler error
  3. --FILE--
  4. <?php
  5. if (0) {
  6. function foo() {
  7. }
  8. }
  9. use function bar\foo;
  10. echo "Done";
  11. ?>
  12. --EXPECT--
  13. Done