mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
7a3dcc3e33
Namespace names are now lexed as single tokens of type T_NAME_QUALIFIED, T_NAME_FULLY_QUALIFIED or T_NAME_RELATIVE. RFC: https://wiki.php.net/rfc/namespaced_names_as_token Closes GH-5827.
11 lines
261 B
PHP
11 lines
261 B
PHP
--TEST--
|
|
Cannot use "namespace\xyz" as namespace name, due to conflict with ns-relative names
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace NAMEspace\xyz;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Parse error: syntax error, unexpected namespace-relative name "NAMEspace\xyz", expecting "{" in %s on line %d
|