diff options
author | Stanislav Malyshev <stas@php.net> | 2008-11-11 19:44:16 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2008-11-11 19:44:16 +0000 |
commit | caa133b3d36ea1fdf3bfbc3da6d8406c2d962862 (patch) | |
tree | 28893fc7d421e6bfe55d7c856946d226606a3fbb /Zend/tests/ns_077_3.phpt | |
parent | a2556b1f1c00967e25c10c3e98bfa300f2ce86e5 (diff) | |
download | php-git-caa133b3d36ea1fdf3bfbc3da6d8406c2d962862.tar.gz |
some new tests
Diffstat (limited to 'Zend/tests/ns_077_3.phpt')
-rwxr-xr-x | Zend/tests/ns_077_3.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/ns_077_3.phpt b/Zend/tests/ns_077_3.phpt new file mode 100755 index 0000000000..bdeb7924e6 --- /dev/null +++ b/Zend/tests/ns_077_3.phpt @@ -0,0 +1,13 @@ +--TEST-- +077: Unknown compile-time constants in namespace +--FILE-- +<?php +namespace foo; + +function foo($a = array(namespace\unknown => unknown)) +{ +} + +foo(); +--EXPECTF-- +Fatal error: Undefined constant 'foo\unknown' in %sns_077_%d.php on line %d |