[dev] Circular dependency in Perms:: constructor
Brock Haywood
brock.haywood at camacc.com
Wed Jan 21 21:35:58 PST 2004
Chuck Hagenbuch wrote:
> Quoting John Morrissey <jwm at horde.net>:
>
>> There's a circular dependency on line 50 of Perms.php:
>>
>> Horde::fatal(sprintf(_("You must configure a DataTree backend to use
>> %s."),
>> $GLOBALS['registry']->getParam('name')), __FILE__, __LINE__);
>>
>> Perms is instantiated in Registry::'s constructor, so this results in a
>> fatal error instead of a Horde error.
>
>
> I'm going to change it to just say Horde; better ideas are welcome.
>
> -chuck
>
> --
> Charles Hagenbuch, <chuck at horde.org>
> "Here, I brought some cole slaw. It's made from peeeooople! Just
> kidding."
>
This change seems to cause problems for me (from the cvs diff of
framework/Perms/Perms.php 1.67,1.68) :
- Horde::fatal(sprintf(_("You must configure a DataTree backend to use %s."), $GLOBALS['registry']->getParam('name')), __FILE__, __LINE__);
+ Horde::fatal(_("You must configure a DataTree backend to use Horde.", __FILE__, __LINE__);
Here is the exact error:
*Parse error*: parse error in */usr/share/php/Horde/Perms.php* on line *50*
*Fatal error*: Undefined class name 'perms' in
*/var/www/horde/lib/Registry.php* on line *175
*Perhaps I have not updated properly as I am new to the horde project so
its possible I have made a simple mistake updating from cvs.
Brock Haywood <brock.haywood at camacc.com>
More information about the dev
mailing list