Doc #78977 [NEW]: Assigning the return value of new is a syntax error instead of deprecated

From: Date: Tue, 17 Dec 2019 10:36:18 +0000
Subject: Doc #78977 [NEW]: Assigning the return value of new is a syntax error instead of deprecated
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17136@lists.php.net to get a copy of this message
From:             php at felixdd dot de
Operating system: 
PHP version:      Irrelevant
Package:          Documentation problem
Bug Type:         Documentation Problem
Bug description:Assigning the return value of new is a syntax error instead of deprecated

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 bug report at https://bugs.php.net/bug.php?id=78977&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=78977&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=78977&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=78977&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=78977&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=78977&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=78977&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=78977&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=78977&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=78977&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=78977&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78977&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=78977&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=78977&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=78977&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=78977&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=78977&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=78977&r=mysqlcfg


Thread (2 messages)

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