vrana Tue Jul 27 17:00:22 2004 EDT
Modified files: /phpdoc/en/language control-structures.xml Log: Ops, it was already documented http://cvs.php.net/diff.php/phpdoc/en/language/control-structures.xml?r1=1.99&r2=1.100&ty=u Index: phpdoc/en/language/control-structures.xml diff -u phpdoc/en/language/control-structures.xml:1.99 phpdoc/en/language/control-structures.xml:1.100 --- phpdoc/en/language/control-structures.xml:1.99 Tue Jul 27 16:12:11 2004 +++ phpdoc/en/language/control-structures.xml Tue Jul 27 17:00:22 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.99 $ --> +<!-- $Revision: 1.100 $ --> <chapter id="language.control-structures"> <title>Control Structures</title> @@ -1424,11 +1424,6 @@ variables within those tags and they will be introduced at whichever point the file was included. </simpara> - <simpara> - If there is no return statement inside an included file, implicit - <literal>return 1;</literal> is added at the end of the file. If the file - can't be included, &false; is returned. - </simpara> <para> Because <function>include</function> is a special language costruct, parentheses are not needed around its argument. Take care when comparing @@ -1502,6 +1497,10 @@ <literal>$bar</literal> is the value <literal>1</literal> because the include was successful. Notice the difference between the above examples. The first uses <function>return</function> within the included file while the other does not. + If the file can't be included, &false; is returned and + <literal>E_WARNING</literal> is issued. + </simpara> + <simpara> A few other ways to "include" files into variables are with <function>fopen</function>, <function>file</function> or by using <function>include</function> along with