[dev] Circular dependency in Perms:: constructor

Jan Schneider jan at horde.org
Thu Jan 22 04:23:30 PST 2004


Zitat von Brock Haywood <brock.haywood at camacc.com>:

> 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.

Fixed in CVS.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - Neue Wege des Lernens
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list