Bug #70338 [Opn->Nab]: Variable incompatibility with PHP 5.6
| From: | cmb@php.net | Date: | Mon, 24 Aug 2015 12:19:34 +0000 |
| Subject: | Bug #70338 [Opn->Nab]: Variable incompatibility with PHP 5.6 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195467@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70338&edit=1
ID: 70338
Updated by: cmb@php.net
Reported by: craig_carnell at hotmail dot com
Summary: Variable incompatibility with PHP 5.6
-Status: Open
+Status: Not a bug
Type: Bug
-Package: Session related
+Package: Scripting Engine problem
Operating System: OS X 10.10.5
PHP Version: 7.0.0RC1
Block user comment: N
Private report: N
New Comment:
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
That is because of the uniform variable syntax implemented as of
PHP 7, see <https://wiki.php.net/rfc/uniform_variable_syntax>.
Previous Comments:
------------------------------------------------------------------------
[2015-08-24 11:26:37] craig_carnell at hotmail dot com
Description:
------------
There exist an incompatibility with previous working code in PHP 5.6 in Magento CE 1.9.2.1
Test script:
---------------
The following code works on PHP 5.6:
app/code/core/Mage/Core/Model/Layout.php on line 555
$out .= $this->getBlock($callback[0])->$callback[1]();
It has to be modified to look like this:
$this->getBlock($callback[0])->{$callback[1]}();
Expected result:
----------------
Without the change, we get an exception generated
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70338&edit=1