summaryrefslogtreecommitdiff
path: root/Zend/tests/bug43343.phpt
blob: 79b3e5a24ad3883c6b5576c5dddbe4e5571bc99b (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #43343 (Variable class name)
--FILE--
<?php
namespace Foo;
class Bar { }
$foo = 'bar';
var_dump(new namespace::$foo);
?>
--EXPECTF--
Parse error: %s error%sexpecting%sT_NS_SEPARATOR%sin %sbug43343.php on line 5