diff options
author | Ferenc Kovacs <tyra3l@gmail.com> | 2013-12-06 05:39:49 +0100 |
---|---|---|
committer | Ferenc Kovacs <tyra3l@gmail.com> | 2013-12-06 05:39:49 +0100 |
commit | 562fa252ad932f321131ab6f65ffaef8d62fc73a (patch) | |
tree | 75db37b349886e52699c390fdb0638ae9b7026ed /Zend/tests/use_function/conditional_function_declaration.phpt | |
parent | f0248bdce598a382899056d348d204c9d61746df (diff) | |
parent | 611da37617749c81ab22b1e44a0cc1f294cc493a (diff) | |
download | php-git-562fa252ad932f321131ab6f65ffaef8d62fc73a.tar.gz |
Merge branch 'use-function' of git://github.com/igorw/php-src into igorw-use-function
Diffstat (limited to 'Zend/tests/use_function/conditional_function_declaration.phpt')
-rw-r--r-- | Zend/tests/use_function/conditional_function_declaration.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/use_function/conditional_function_declaration.phpt b/Zend/tests/use_function/conditional_function_declaration.phpt new file mode 100644 index 0000000000..ccfb96103a --- /dev/null +++ b/Zend/tests/use_function/conditional_function_declaration.phpt @@ -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 |