[horde] Wrong return statements?

Chuck Hagenbuch chuck at horde.org
Thu Apr 17 20:12:28 UTC 2008


Quoting Christoph Fauck <christoph.fauck at fauck.info>:

> This is my first post here. If I'm being conspicuous, be lenient  
> toward so, please:-)
>
> I've found some curious return statements like:
>
> mail:/usr/share/horde3# grep "return.*=.*new" * -R
>
> lib/Horde/Config.php:            return $doc = new  
> Horde_Config_Document($file);
> lib/Horde/Config.php:        return $root = new  
> Horde_Config_Element($this->node->documentElement);
> passwd/lib/Driver.php:            return $ret = &new $class($params);
>
> Are you sure, that the return satatements are on purpose

Yes.

Are you seeing any particular problem or ... ?

-chuck

-- 
"I have concerns that we are not behaving like a mature, responsible,  
collection of interdependent organisms." - Rick O.


More information about the horde mailing list