mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
1ebbb67397
commit
6165f32272
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue