svn: /phpdoc/en/trunk/language/ namespaces.xml
| From: | Christoph Michael Becker | Date: | Thu, 17 Dec 2015 11:03:26 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/ namespaces.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13898@lists.php.net to get a copy of this message | ||
cmb Thu, 17 Dec 2015 11:03:26 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=338281
Log:
fixed #70930: Namespaces FAQ is outdated
Bug: https://bugs.php.net/70930 (Open) Namespaces FAQ is
outdated
Changed paths:
U phpdoc/en/trunk/language/namespaces.xml
Modified: phpdoc/en/trunk/language/namespaces.xml
===================================================================
--- phpdoc/en/trunk/language/namespaces.xml 2015-12-17 09:45:42 UTC (rev 338280)
+++ phpdoc/en/trunk/language/namespaces.xml 2015-12-17 11:03:26 UTC (rev 338281)
@@ -1156,7 +1156,7 @@
</listitem>
<listitem>
<simpara>
- <link linkend="language.namespaces.faq.nofuncconstantuse">Neither functions
nor
+ <link linkend="language.namespaces.faq.nofuncconstantuse">Before PHP 5.6
neither functions nor
constants can be imported via the <literal>use</literal>
statement.</link>
</simpara>
@@ -1501,12 +1501,12 @@
</para>
</sect2>
<sect2 xml:id="language.namespaces.faq.nofuncconstantuse">
- <title>Neither functions nor constants can be imported via the
<literal>use</literal>
+ <title>Before PHP 5.6 neither functions nor constants can be imported via the
<literal>use</literal>
statement.</title>
<para>
- The only elements that are affected by <literal>use</literal> statements are
namespaces
+ Before PHP 5.6 the only elements that are affected by <literal>use</literal>
statements are namespaces
and class names. In order to shorten a long constant or function, import its containing
- namespace
+ namespace.
<informalexample>
<programlisting role="php">
<![CDATA[
@@ -1520,6 +1520,7 @@
]]>
</programlisting>
</informalexample>
+ As of PHP 5.6 aliasing or importing function and constant names is allowed.
</para>
</sect2>
<sect2 xml:id="language.namespaces.faq.quote">