Doc #78977 [Opn->Csd]: Assigning the return value of new is a syntax error instead of deprecated

From: Date: Tue, 17 Dec 2019 13:18:02 +0000
Subject: Doc #78977 [Opn->Csd]: Assigning the return value of new is a syntax error instead of deprecated
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17137@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78977&edit=1

 ID:                 78977
 Updated by:         cmb@php.net
 Reported by:        php at felixdd dot de
 Summary:            Assigning the return value of new is a syntax error
                     instead of deprecated
-Status:             Open
+Status:             Closed
 Type:               Documentation Problem
 Package:            Documentation problem
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 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.


Previous Comments:
------------------------------------------------------------------------
[2019-12-17 13:17:30] cmb@php.net

Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=348555
Log: Fix #78977: Assigning the return value of new is a syntax error instead of deprecated

------------------------------------------------------------------------
[2019-12-17 10:36:18] php at felixdd dot de

Description:
------------
At the end of manual page https://php.net/language.operators.assignment
the example with $o = &new C; says that this is deprecated. However this is since 7.0 a syntax
error.

See also: https://www.php.net/manual/en/migration70.incompatible.php#migration70.incompatible.other.new-by-ref



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=78977&edit=1


Thread (2 messages)

« previous php.doc.bugs (#17137) next »