|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-18 11:02 UTC] judas dot iscariote at gmail dot com
[2005-12-18 11:12 UTC] derick@php.net
[2005-12-18 22:57 UTC] simon dot jackson at caringbush dot net
[2005-12-18 23:10 UTC] simon dot jackson at caringbush dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 20:00:01 2025 UTC |
Description: ------------ 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; } Is this an error in PHP or Horde?