| 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 (7308 days ago) |
| Due | |
| Updated | 12/19/2005 (7307 days ago) |
| Assigned | |
| Resolved | 12/19/2005 (7307 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Not A Bug
Priority ⇒ 1. Low
because things happened since then. anyways, This is also a duplicate
of dozens of other tickets.b
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Return of reerence variables
Queue ⇒ Horde Framework Packages
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.