Global level is OK for global and static (doc bug #50411)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308207 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2011-02-10 15:28:09 +00:00
parent 22bdd06b74
commit ead656df66

View file

@ -414,6 +414,12 @@ function test_global()
</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 @@ function foo(){
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">