mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix #74257: "namespace \X" does not work to declare a namespace
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349407 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
916268236f
commit
59d459d265
1 changed files with 6 additions and 0 deletions
|
@ -130,6 +130,12 @@ function connect() { /* ... */ }
|
|||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<note>
|
||||
<simpara>
|
||||
Fully qualified names (i.e. names starting with a backslash) are not allowed in namespace
|
||||
declarations, because such constructs are interpreted as relative namespace expressions.
|
||||
</simpara>
|
||||
</note>
|
||||
The only code construct allowed before a namespace declaration is the
|
||||
<literal>declare</literal> statement, for defining encoding of a source file. In addition,
|
||||
no non-PHP code may precede a namespace declaration, including extra whitespace:
|
||||
|
|
Loading…
Reference in a new issue