diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-12-07 17:11:24 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-12-07 17:11:24 +0000 |
commit | 6484b3c45851e4d7ed4ea6ddb0acaccca4a8a76e (patch) | |
tree | 65eab535abd3b9ed689a0ff52b239c82eb6a5be1 /Zend/tests/bug43343.phpt | |
parent | d4cbb77c90ba6075f45f7a043c916f8668efe288 (diff) | |
download | php-git-6484b3c45851e4d7ed4ea6ddb0acaccca4a8a76e.tar.gz |
Fixed bug #43344 (Wrong error message for undefined namespace constant)
Diffstat (limited to 'Zend/tests/bug43343.phpt')
-rw-r--r-- | Zend/tests/bug43343.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/bug43343.phpt b/Zend/tests/bug43343.phpt new file mode 100644 index 0000000000..fa1d993ab8 --- /dev/null +++ b/Zend/tests/bug43343.phpt @@ -0,0 +1,11 @@ +--TEST-- +Bug #43343 (Variable class name) +--FILE-- +<?php +namespace Foo; +class Bar { } +$foo = 'bar'; +var_dump(new namespace::$foo); +?> +--EXPECTF-- +Fatal error: Cannot use 'namespace' as a class name in %sbug43343.php on line 5 |