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
This commit is contained in:
Jakub Vrana 2007-08-17 08:10:04 +00:00
parent cf7559c1a7
commit 9afb78925b

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.144 $ -->
<!-- $Revision: 1.145 $ -->
<chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Control Structures</title>
@ -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 <link
linkend="language.constants.predefined">magic constants</link> which are
evaluated by the parser before the include occurs.
</simpara>
<para>
<example>