note 64107 added to language.oop5.decon
| From: | ckoschmied at web dot de | Date: | Fri, 07 Apr 2006 14:58:26 +0000 |
| Subject: | note 64107 added to language.oop5.decon | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107525@lists.php.net to get a copy of this message | ||
Be aware of the fact that if you create a new instance of a class like this:
$instance = new Class();
$instance will not contain a valid reference to the newly created object until the constructor is
finished. So don't use $instance while the constructor is still running.
Well, on the other side, why would you want to do it? I wanted to, and it took me some hours to
figure out.
Even though it's quite obvious if you think about it :-)
----
Server IP: 217.160.72.57
Probable Submitter: 80.137.172.121
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php
Edit -- http://master.php.net/note/edit/64107
Del: integrated -- http://master.php.net/note/delete/64107/integrated
Del: useless -- http://master.php.net/note/delete/64107/useless
Del: bad code -- http://master.php.net/note/delete/64107/bad+code
Del: spam -- http://master.php.net/note/delete/64107/spam
Del: non-english -- http://master.php.net/note/delete/64107/non-english
Del: in docs -- http://master.php.net/note/delete/64107/in+docs
Del: other reasons-- http://master.php.net/note/delete/64107
Reject -- http://master.php.net/note/reject/64107
Search -- http://master.php.net/manage/user-notes.php