php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #78977 Assigning the return value of new is a syntax error instead of deprecated
Submitted: 2019-12-17 10:36 UTC Modified: 2019-12-17 13:18 UTC
From: php at felixdd dot de Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant 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: php at felixdd dot de
New email:
PHP Version: OS:

 

 [2019-12-17 10:36 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-12-17 13:17 UTC] 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 13:18 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-12-17 13:18 UTC] cmb@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.
 [2019-12-17 13:20 UTC] salathe@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=d0b38446755da26a4f530b3bec8632a81bff3c54
Log: Fix #78977: Assigning the return value of new is a syntax error instead of deprecated
 [2019-12-17 15:50 UTC] mumumu@php.net
Automatic comment from SVN on behalf of mumumu
Revision: http://svn.php.net/viewvc/?view=revision&revision=348560
Log: Fix #78977: Assigning the return value of new is a syntax error instead of deprecated

Bug: https://bugs.php.net/78977 (Open) Assigning the return value of new is a syntax error instead of deprecated
 [2020-02-07 06:04 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=6ccb666358375c6815e5fadbf6386a496af1d794
Log: Fix #78977: Assigning the return value of new is a syntax error instead of deprecated
 [2020-12-30 11:59 UTC] nikic@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=21811cb2c656a2b2c12a23717a344ebf392cc29a
Log: Fix #78977: Assigning the return value of new is a syntax error instead of deprecated
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 03:00:02 2026 UTC