Summary | Warnings with PHP 5.1: Only variables can be passed by reference |
Queue | Horde Framework Packages |
Queue Version | HEAD |
Type | Bug |
State | Not A Bug |
Priority | 2. Medium |
Owners | |
Requester | fse (at) camline (dot) com |
Created | 11/11/2005 (7257 days ago) |
Due | |
Updated | 11/14/2005 (7254 days ago) |
Assigned | 11/11/2005 (7257 days ago) |
Resolved | 11/14/2005 (7254 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
environment, therefore I cannot test vs. CVS HEAD version. If you are
aware of this issue, then its ok for me...
State ⇒ Feedback
concrete places, or better yet patches the fixes *current* HEAD code.
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Warnings with PHP 5.1: Only variables can be passed by reference
Queue ⇒ Horde Framework Packages
seems to confuse PHP 5.1:
function &factory($driver, $params = null)
{
...
>>> return $ret = &new $class($params);
...
}
The warning is thrown once the factory method returns the new class.
If debug_level includes reporting of warnings, the application is
blocked, because http headers cannot be set anymore...
Workaround:
set in $HORDE_HOME/config.conf.php:
$conf['debug_level'] = E_ERROR;