note 91912 added to language.oop5.decon
| From: | benjaminATjosefusDODDLYDOTnet at osu1 dot php dot net | Date: | Wed, 01 Jul 2009 12:12:36 +0000 |
| Subject: | note 91912 added to language.oop5.decon | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157755@lists.php.net to get a copy of this message | ||
As said above:
"For backwards compatibility, if PHP 5 cannot find a __construct() function for a given class,
it will search for the old-style constructor function, by the name of the class. Effectively, it
means that the only case that would have compatibility issues is if the class had a method named
__construct() which was used for different semantics. "
If you use PHP > version 4, use "__construct()" though. The backward compatibilty could
become deprecated some time!
----
Server IP: 217.160.72.57
Probable Submitter: 84.58.6.126
----
Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php
Edit -- https://master.php.net/note/edit/91912
Del: integrated -- https://master.php.net/note/delete/91912/integrated
Del: useless -- https://master.php.net/note/delete/91912/useless
Del: bad code -- https://master.php.net/note/delete/91912/bad+code
Del: spam -- https://master.php.net/note/delete/91912/spam
Del: non-english -- https://master.php.net/note/delete/91912/non-english
Del: in docs -- https://master.php.net/note/delete/91912/in+docs
Del: other reasons-- https://master.php.net/note/delete/91912
Reject -- https://master.php.net/note/reject/91912
Search -- https://master.php.net/manage/user-notes.php