note 100372 added to language.references.whatdo
| From: | vanevery at gmail dot com | Date: | Tue, 12 Oct 2010 06:08:44 +0000 |
| Subject: | note 100372 added to language.references.whatdo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173151@lists.php.net to get a copy of this message | ||
@Amaroq
Yes, you're right: the method gets called twice. Not because it is the first function, but
because it is the constructor. Historically (and still) before magic methods, PHP supported
constructors as functions that shared the same name as the class, e.g. "reftest".
It's good practice to capitalize the names of your classes as this would have avoided the issue
or made it more apparent.
----
Server IP: 69.147.83.197
Probable Submitter: 24.7.37.64
----
Manual Page -- http://www.php.net/manual/en/language.references.whatdo.php
Edit -- https://master.php.net/note/edit/100372
Del: integrated -- https://master.php.net/note/delete/100372/integrated
Del: useless -- https://master.php.net/note/delete/100372/useless
Del: bad code -- https://master.php.net/note/delete/100372/bad+code
Del: spam -- https://master.php.net/note/delete/100372/spam
Del: non-english -- https://master.php.net/note/delete/100372/non-english
Del: in docs -- https://master.php.net/note/delete/100372/in+docs
Del: other reasons-- https://master.php.net/note/delete/100372
Reject -- https://master.php.net/note/reject/100372
Search -- https://master.php.net/manage/user-notes.php