Bug #72718 [Com]: PHP7: array to string conversion
[email protected] ("spam2 at rhsoft dot net") Sun, 31 Jul 2016 10:13:58 GMT
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
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: Open
Type: Bug
Package: PHP Language Specification
PHP Version: 7.0.9
Block user comment: N
Private report: N
New Comment:
AND AT LEAST there should have been done something in 5.6 to WARN about such needed changes without beraking applications at that point
Previous Comments:
------------------------------------------------------------------------
[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