6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/16/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#3167] Return of reerence variables
*
Your Email Address
*
Spam protection
Enter the letters below:
. __..__ . .. . |(__ [__)|\/||\ | \__|.__)| \| || \|
Comment
> With Horde 3.0.9 (in many places) on PHP 5.0.4, the following works: > > > > if (class_exists($class)) { > > return $ret = &new $class($params); > > } > > > > It fails on PHP 5.1.0 and PHP 5.1.1 with an error of > > > > Notice: Only variable references should be returned by reference in > > ...on line ... > > > > However, the following does work: > > > > if (class_exists($class)) { > > $ret = &new $class($params); > > return $ret; > > } > > > > I originally submitted this wih PHP, but they point out that it is a > bug in Horde.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers