#37105 [Opn->Csd]: "new self;" feature not properly documented
| From: | vrana@php.net | Date: | Fri, 17 Aug 2007 06:18:01 +0000 |
| Subject: | #37105 [Opn->Csd]: "new self;" feature not properly documented | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969377524@lists.php.net to get a copy of this message | ||
ID: 37105
Updated by: vrana@php.net
Reported By: colder@php.net
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
new opeator: "In the class context, it is possible to create a new
object by new self and new parent."
Previous Comments:
------------------------------------------------------------------------
[2006-04-17 13:07:11] colder@php.net
Well, "$instance = new parent;" would have to be documented too.
Regards
------------------------------------------------------------------------
[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