From 6165f32272c8cfb2625a3197f6200cf871758033 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 16 Aug 2007 08:51:43 +0000 Subject: [PATCH] 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 --- appendices/migration5.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/appendices/migration5.xml b/appendices/migration5.xml index 9a3b9b90e6..02326b583a 100755 --- a/appendices/migration5.xml +++ b/appendices/migration5.xml @@ -1,5 +1,5 @@ - + Migrating from PHP 4 to PHP 5 @@ -888,6 +888,11 @@ Action application/x-httpd-php "/php/php-cgi.exe" The new Object Model is documented at the Language Reference. + + 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. + See also the zend.ze1_compatibility_mode directive for compatability with