php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #14094 Documentation for @new is missing
Submitted: 2001-11-17 17:01 UTC Modified: 2002-06-10 06:50 UTC
From: mfischer at guru dot josefine dot at Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.6 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mfischer at guru dot josefine dot at
New email:
PHP Version: OS:

 

 [2001-11-17 17:01 UTC] mfischer at guru dot josefine dot at
The documentation about classes/objects misses that you actually can prevent exposing errors in the constructor by using @new.

And, it should also mentioned that you can't use the '@' operator with &new.

  $obj = @new classname; // ok, works

  $obj = @&new classname; // parser error

&new classname is a special case, therefore you can't "mute" it.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-10 06:50 UTC] mfischer@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

Again me ...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 12 04:01:27 2024 UTC