#37105 [Opn]: "new self;" feature not properly documented
| From: | colder@php.net | Date: | Mon, 17 Apr 2006 13:07:12 +0000 |
| Subject: | #37105 [Opn]: "new self;" feature not properly documented | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969372708@lists.php.net to get a copy of this message | ||
ID: 37105
Updated by: colder@php.net
Reported By: colder@php.net
Status: Open
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Well, "$instance = new parent;" would have to be documented too.
Regards
Previous Comments:
------------------------------------------------------------------------
[2006-04-17 13:02:20] colder@php.net
Description:
------------
The oop5 manual never talks about the ability to instanciate a class
inside itself using "$instance = new self;".
The only occurence of this behavior is in a user comment in the
reflection manual. It would be nice to have this stated somewhere.
Putting it in "The Basics" under the "new" section would be a
possibility:
Do you have any suggestion?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37105&edit=1