mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

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.
10 lines
261 B
PHP
10 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
|