[Chameleon-dev] [Bug 1778] New: [Chameleon] Assigning by reference
is deprecated in PHP5
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Thu Aug 30 17:50:10 EDT 2007
http://bugzilla.maptools.org/show_bug.cgi?id=1778
Summary: [Chameleon] Assigning by reference is deprecated in PHP5
Product: Chameleon
Version: 2.4
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: jlacroix at mapgears.com
Some users got the following error on the following line:
$this->moButton =& new CWCButton($this);
Strict Standards: Assigning the return value of new by reference is deprecated
in D:\ms4w\apps\chameleon\htdocs\widgets\NavTool.php on line 82
It seems that doing
$NewObject =& new ...
is deprecated since PHP 5.2 (maybe a bit sooner).
To take care of this warning, we should remove the & operator. Note that this
may affect PHP4 installations by making them a bit slower, but since PHP4 end of
lief as been announced it's good to force the switch.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list