Req #72718 [Opn->Wfx]: PHP 5.6 doesn't strict/deprecated warn for uniform variable syntax changes

From: Date: Sun, 31 Jul 2016 10:40:57 +0000
Subject: Req #72718 [Opn->Wfx]: PHP 5.6 doesn't strict/deprecated warn for uniform variable syntax changes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202760@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72718&edit=1 ID: 72718 Updated by: nikic@php.net Reported by: spam2 at rhsoft dot net Summary: PHP 5.6 doesn't strict/deprecated warn for uniform variable syntax changes -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Scripting Engine problem PHP Version: 7.0.9 Block user comment: N Private report: N New Comment: We're not going to introduce posthumous deprecations on a *stable* branch. Previous Comments: ------------------------------------------------------------------------ [2016-07-31 10:26:56] requinix@php.net I suspect it's not even possible to do this, but I'd rather not spend my time arguing with you. ------------------------------------------------------------------------ [2016-07-31 10:15:22] spam2 at rhsoft dot net IT IS A BUG not have any deprecation warnings running hundrets of websites on PHP 5.6 with error reporting E_ALL ------------------------------------------------------------------------ [2016-07-31 10:14:00] requinix@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php You'd think a change like that would be documented, right? http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.variable-handling ------------------------------------------------------------------------ [2016-07-31 10:13:57] spam2 at rhsoft dot net AND AT LEAST there should have been done something in 5.6 to WARN about such needed changes without beraking applications at that point ------------------------------------------------------------------------ [2016-07-31 10:08:48] spam2 at rhsoft dot net Description: ------------ $count = $GLOBALS['cl_api']->$module['api_name']->count(0); $count = $GLOBALS['cl_api']->{$module['api_name']}->count(0); why in the world is the first a "array to string conversion" with PHP7 $module['api_name'] is clearly a field of a array and a string while i suck all the changes in context of $$ that above is somehow unacceptable because there is hardly some clean way to seek for such things since seek for ]-> would also find any of similar but fine code and seek for ]->$ the same ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72718&edit=1

« previous php.bugs (#202760) next »