Bug #72214 [Com]: variables doesn't passed node
| From: | matias at avusto dot fi | Date: | Fri, 13 May 2016 17:19:00 +0000 |
| Subject: | Bug #72214 [Com]: variables doesn't passed node | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-201072@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72214&edit=1
ID: 72214
Comment by: matias at avusto dot fi
Reported by: schumacher1986 at hotmail dot com
Summary: variables doesn't passed node
Status: Feedback
Type: Bug
Package: Scripting Engine problem
Operating System: windows
PHP Version: 7.0.7RC1
Block user comment: N
Private report: N
New Comment:
Its not a bug in PHP, though I have no idea why PHP never had the notice shown before.
class JAdminCssMenu extends JObject
{
public function addChild(JMenuNode &$node, $setCurrent = false)
{
...
}
...
}
vs call to it:
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_CONTROL_PANEL'),
'index.php', 'class:cpanel'));
Only variables can be passed to the function as the first parameter and what is passed is certainly
not a variable.
Previous Comments:
------------------------------------------------------------------------
[2016-05-13 14:59:00] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2016-05-13 14:57:14] schumacher1986 at hotmail dot com
Description:
------------
With the 7.0.7 RC1 i get Notice: Only variables should be passed by reference
testing instruction:
Install Joomla. Change php version to 7.0.7 RC1
On the backend you getting a lot of notices.
Looks like the variables doesn't parsed correct anymore.
Test script:
---------------
public function __construct()
{
$this->_root = new JMenuNode('ROOT');
$this->_current = & $this->_root;
}
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_CONTROL_PANEL'),
'index.php', 'class:cpanel'));
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72214&edit=1