From 9afb78925b7f595b9c1e2f52fab0a11b68115f26 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 17 Aug 2007 08:10:04 +0000 Subject: [PATCH] Magic constants in included file from a function (bug #41487) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@241401 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index c9b46c7e74..bac0f47efb 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -1350,6 +1350,9 @@ echo "A $color $fruit"; // A green apple then all of the code contained in the called file will behave as though it had been defined inside that function. So, it will follow the variable scope of that function. + An exception to this rule are magic constants which are + evaluated by the parser before the include occurs.