xref: /PHP-8.2/Zend/tests/bug43343.phpt (revision d92229d8)
1--TEST--
2Bug #43343 (Variable class name)
3--FILE--
4<?php
5namespace Foo;
6class Bar { }
7$foo = 'bar';
8var_dump(new namespace::$foo);
9?>
10--EXPECTF--
11Parse error: syntax error, unexpected token "namespace", expecting ":" in %s on line %d
12