php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52499 new keyword not fully documented
Submitted: 2010-07-30 14:49 UTC Modified: 2010-08-15 09:29 UTC
From: chris at cmbuckley dot co dot uk Assigned: degeberg (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chris at cmbuckley dot co dot uk
New email:
PHP Version: OS:

 

 [2010-07-30 14:49 UTC] chris at cmbuckley dot co dot uk
Description:
------------
http://uk.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.new

The "new" keyword has a couple of missing points:

1. After PHP 5.3 it is also possible to create an object by 'new static'.
2. If $foo is an instance of Foo, a new instance of Foo can be created by calling 'new $foo'.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-15 09:29 UTC] degeberg@php.net
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&revision=302256
Log: Fixed PHP bug #52499 (new keyword not fully documented)
 [2010-08-15 09:29 UTC] degeberg@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: degeberg
 [2010-08-15 09:29 UTC] degeberg@php.net
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.


 [2010-08-15 09:34 UTC] degeberg@php.net
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&revision=302257
Log: Better example for #52499
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 05:00:01 2026 UTC