Bug #72718 [Com]: PHP7: array to string conversion

From: Date: Sun, 31 Jul 2016 10:15:26 +0000
Subject: Bug #72718 [Com]: PHP7: array to string conversion
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202757@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 Comment by: spam2 at rhsoft dot net Reported by: spam2 at rhsoft dot net Summary: PHP7: array to string conversion Status: Not a bug Type: Bug Package: Scripting Engine problem PHP Version: 7.0.9 Block user comment: N Private report: N New Comment: IT IS A BUG not have any deprecation warnings running hundrets of websites on PHP 5.6 with error reporting E_ALL Previous Comments: ------------------------------------------------------------------------ [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 (#202757) next »