6.0.0-beta1
10/16/25

[#3167] Return of reerence variables
Summary Return of reerence variables
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester simon.jackson (at) carringbush (dot) net
Created 12/18/2005 (7242 days ago)
Due
Updated 12/19/2005 (7241 days ago)
Assigned
Resolved 12/19/2005 (7241 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/19/2005 03:17:28 AM Chuck Hagenbuch Comment #3
State ⇒ Not A Bug
Priority ⇒ 1. Low
Reply to this comment
Calling it a bug in Horde is the same as calling a 1999 map "buggy" 
because things happened since then. anyways, This is also a duplicate 
of dozens of other tickets.b
12/18/2005 10:11:37 PM simon (dot) jackson (at) carringbush (dot) net Comment #2 Reply to this comment
12/18/2005 10:05:13 PM simon (dot) jackson (at) carringbush (dot) net Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Return of reerence variables
Queue ⇒ Horde Framework Packages
Reply to this 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.

Saved Queries