mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
22bdd06b74
commit
ead656df66
1 changed files with 12 additions and 0 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue