vrana Thu Aug 16 08:51:44 2007 UTC
Modified files: /phpdoc/en/appendices migration5.xml Log: Parent's function is never constructor in PHP 5 (bug #42256) http://cvs.php.net/viewvc.cgi/phpdoc/en/appendices/migration5.xml?r1=1.53&r2=1.54&diff_format=u Index: phpdoc/en/appendices/migration5.xml diff -u phpdoc/en/appendices/migration5.xml:1.53 phpdoc/en/appendices/migration5.xml:1.54 --- phpdoc/en/appendices/migration5.xml:1.53 Tue Aug 7 07:54:50 2007 +++ phpdoc/en/appendices/migration5.xml Thu Aug 16 08:51:43 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.53 $ --> +<!-- $Revision: 1.54 $ --> <appendix xml:id="migration5" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Migrating from PHP 4 to PHP 5</title> @@ -889,6 +889,11 @@ linkend="language.oop5">Language Reference</link>. </para> <para> + In PHP 5, function with the name of a class is called as a constructor + only if defined in the same class. In PHP 4, it is called also if defined + in the parent class. + </para> + <para> See also the <link linkend="ini.zend.ze1-compatibility-mode"> zend.ze1_compatibility_mode</link> directive for compatability with PHP 4.