ID: 37105 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [EMAIL PROTECTED] Well, "$instance = new parent;" would have to be documented too. Regards ------------------------------------------------------------------------ [2006-04-17 13:02:20] [EMAIL PROTECTED] 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