mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
12 lines
224 B
PHP
12 lines
224 B
PHP
--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
|