From ead656df661625bb6a73b24f92bd204316e5c564 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 10 Feb 2011 15:28:09 +0000 Subject: [PATCH] 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 --- language/variables.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/language/variables.xml b/language/variables.xml index 41891fee5d..7d0548f7e0 100644 --- a/language/variables.xml +++ b/language/variables.xml @@ -414,6 +414,12 @@ function test_global() + + + Using global keyword outside a function is not an + error. It can be used if the file is included from inside a function. + + @@ -537,6 +543,12 @@ function foo(){ Static declarations are resolved in compile-time. + + + Using global keyword outside a function is not an + error. It can be used if the file is included from inside a function. + +