vrana           Tue Jul 27 16:12:12 2004 EDT

  Modified files:              
    /phpdoc/en/language control-structures.xml 
  Log:
  Default return values of include (bug #25108)
  
http://cvs.php.net/diff.php/phpdoc/en/language/control-structures.xml?r1=1.98&r2=1.99&ty=u
Index: phpdoc/en/language/control-structures.xml
diff -u phpdoc/en/language/control-structures.xml:1.98 
phpdoc/en/language/control-structures.xml:1.99
--- phpdoc/en/language/control-structures.xml:1.98      Tue Jul 27 15:53:55 2004
+++ phpdoc/en/language/control-structures.xml   Tue Jul 27 16:12:11 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.98 $ -->
+<!-- $Revision: 1.99 $ -->
  <chapter id="language.control-structures">
   <title>Control Structures</title>
 
@@ -1424,6 +1424,11 @@
     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
@@ -1538,6 +1543,10 @@
      latest PHP source code distributions.
    </para>
    <para>
+    Return values are the same as with <function>include</function>. If the file
+    was already included, this function returns &true;
+   </para>
+   <para>
     <note>
      <para>
       <function>require_once</function> was added in PHP 4.0.1pl2
@@ -1599,6 +1608,10 @@
     <function>include_once</function>, look at the
     <ulink url="&url.php.pear;">PEAR</ulink> code included in the latest
     PHP source code distributions.
+   </para>
+   <para>
+    Return values are the same as with <function>include</function>. If the file
+    was already included, this function returns &true;
    </para>
    <para>
     <note>

Reply via email to