svn: /phpdoc/en/trunk/language/control-structures/ include-once.xml

From: Date: Thu, 09 Jul 2015 13:36:03 +0000
Subject: svn: /phpdoc/en/trunk/language/control-structures/ include-once.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13446@lists.php.net to get a copy of this message
cmb Thu, 09 Jul 2015 13:36:03 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337130 Log: include_once returns TRUE when including the same file repeatedly (fixes #70031) Bug: https://bugs.php.net/70031 (Open) require_once returns an incorrect value the second time Changed paths: U phpdoc/en/trunk/language/control-structures/include-once.xml Modified: phpdoc/en/trunk/language/control-structures/include-once.xml =================================================================== --- phpdoc/en/trunk/language/control-structures/include-once.xml 2015-07-09 12:02:59 UTC (rev 337129) +++ phpdoc/en/trunk/language/control-structures/include-once.xml 2015-07-09 13:36:03 UTC (rev 337130) @@ -9,8 +9,8 @@ the specified file during the execution of the script. This is a behavior similar to the <function>include</function> statement, with the only difference being that if the code from a file has already - been included, it will not be included again. As the name suggests, - it will be included just once. + been included, it will not be included again, and include_once returns &true;. As the name suggests, + the file will be included just once. </para> <para> <literal>include_once</literal> may be used in cases where

« previous php.doc.cvs (#13446) next »