Parent's function is never constructor in PHP 5 (bug #42256)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@241294 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2007-08-16 08:51:43 +00:00
parent 1ebbb67397
commit 6165f32272

View file

@ -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>
@ -888,6 +888,11 @@ Action application/x-httpd-php "/php/php-cgi.exe"
The new Object Model is documented at the <link
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