svn: /phpdoc/en/trunk/language/ variables.xml
| From: | Jakub Vrana | Date: | Thu, 10 Feb 2011 15:28:09 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/ variables.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7742@lists.php.net to get a copy of this message | ||
vrana Thu, 10 Feb 2011 15:28:09 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=308207
Log:
Global level is OK for global and static (doc bug #50411)
Bug: http://bugs.php.net/50411 (Closed) less important:
global and static in global scope
Changed paths:
U phpdoc/en/trunk/language/variables.xml
Modified: phpdoc/en/trunk/language/variables.xml
===================================================================
--- phpdoc/en/trunk/language/variables.xml 2011-02-10 15:26:37 UTC (rev 308206)
+++ phpdoc/en/trunk/language/variables.xml 2011-02-10 15:28:09 UTC (rev 308207)
@@ -414,6 +414,12 @@
</programlisting>
</example>
</para>
+ <note>
+ <para>
+ Using <literal>global</literal> keyword outside a function is not an
+ error. It can be used if the file is included from inside a function.
+ </para>
+ </note>
</sect2>
<sect2 xml:id="language.variables.scope.static">
@@ -537,6 +543,12 @@
Static declarations are resolved in compile-time.
</para>
</note>
+ <note>
+ <para>
+ Using <literal>global</literal> keyword outside a function is not an
+ error. It can be used if the file is included from inside a function.
+ </para>
+ </note>
</sect2>
<sect2 xml:id="language.variables.scope.references">