For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > November 2005 > cvs: phpdoc /en/appendices migration5.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/appendices migration5.xml
Damien Seguy

2005-11-29, 6:57 pm

dams Tue Nov 29 11:59:45 2005 EDT

Modified files:
/phpdoc/en/appendices migration5.xml
Log:
rephrase

http://cvs.php.net/diff.php/phpdoc/...41&r2=1.42&ty=u
Index: phpdoc/en/appendices/migration5.xml
diff -u phpdoc/en/appendices/migration5.xml:1.41 phpdoc/en/appendices/migration5.xml:1.42
--- phpdoc/en/appendices/migration5.xml:1.41 Mon Apr 11 03:51:02 2005
+++ phpdoc/en/appendices/migration5.xml Tue Nov 29 11:59:43 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.41 $ -->
+<!-- $Revision: 1.42 $ -->
<appendix id="migration5">
<title>Migrating from PHP 4 to PHP 5</title>

@@ -127,10 +127,11 @@
</listitem>
<listitem>
<simpara>
- If there are functions defined in the included file, they can be used in the
- main file independent if they are before <function>return</function> or after.
- If the file is included twice, PHP 5 issues fatal error because functions
- were already declared, while PHP 4 doesn't complain about it.
+ If there are functions defined in the included file, they will be defined
+ in the main file, wether they are they are before or after the
+ <function>return</function> instruction. If the file is included twice,
+ PHP 5 issues fatal error because functions were already declared, while
+ PHP 4 doesn't complain about it.
It is recommended to use <function>include_once</function> instead of
checking if the file was already included and conditionally return inside
the included file.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com