|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-05-13 14:57 UTC] 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'));
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 21:00:02 2025 UTC |
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.