[dev] [commits] Horde branch master updated. 374d93a1f65478c33446dfa25e89524a0dc021eb

Michael M Slusarz slusarz at horde.org
Wed May 19 03:44:47 UTC 2010


Quoting Ben Klang <ben at alkaloid.net>:

> Nope, still looping.
>  
>  
> 1 0.0010 796432 {main}( ) ../index.php:0 2 0.0073 2150232
> Horde_Registry::appInit( ) ../index.php:14 3 0.0074 2152712
> Horde_Registry->__construct( ) ../Registry.php:177 4 0.0622 6186472
> Horde_Injector->getInstance( ) ../Registry.php:368 5 0.0622 6186472
> Horde_Injector->createInstance( ) ../Injector.php:232 6 0.0622 6186520
> Horde_Core_Binder_Notification->create( ) ../Injector.php:200 7 0.0645
> 6359192 Horde_Injector->getInstance( ) ../Notification.php:15 8 0.0645
> 6359192 Horde_Injector->createInstance( ) ../Injector.php:232 9 0.0645
> 6359240 Horde_Core_Binder_Alarm->create( ) ../Injector.php:200 10 0.0645
> 6361136 Horde_Injector->getInstance( ) ../Alarm.php:16 11 0.0646 6361136
> Horde_Injector->createInstance( ) ../Injector.php:232 12 0.0646 6361184
> Horde_Core_Binder_Db->create( ) ../Injector.php:200 13 0.0646 6361184
> Horde_Core_Binder_Db->_createDb( ) ../Db.php:17 14 0.0646 6362792
> Horde_Injector->getInstance( ) ../Db.php:46 15 0.0646 6362792
> Horde_Injector->createInstance( ) ../Injector.php:232 16 0.0646 6362840
> Horde_Core_Binder_Cache->create( ) ../Injector.php:200 17 0.0646 6364656
> Horde_Injector->getInstance( ) ../Cache.php:30 18 0.0646 6364656
> Horde_Injector->createInstance( ) ../Injector.php:232 19 0.0646 6364704
> Horde_Core_Binder_Db->create( ) ../Injector.php:200 20 0.0646 6364704
> Horde_Core_Binder_Db->_createDb( ) ../Db.php:17 21 0.0647 6366312
> Horde_Injector->getInstance( ) ../Db.php:46 22 0.0647 6366312
> Horde_Injector->createInstance( ) ../Injector.php:232 23 0.0647 6366360
> Horde_Core_Binder_Cache->create( ) ../Injector.php:200 24 0.0647 6368176
> Horde_Injector->getInstance( ) ../Cache.php:30 25 0.0647 6368176
> Horde_Injector->createInstance( ) ../Injector.php:232 26 0.0647 6368224
> Horde_Core_Binder_Db->create( ) ../Injector.php:200 27 0.0647 6368224
> Horde_Core_Binder_Db->_createDb( ) ../Db.php:17 28 0.0647 6369832
> Horde_Injector->getInstance( ) ../Db.php:46 29 0.0647 6369832
> Horde_Injector->createInstance( ) ../Injector.php:232 30 0.0647 6369880
> Horde_Core_Binder_Cache->create( ) ../Injector.php:200 31 0.0648 6371696
> Horde_Injector->getInstance( ) ../Cache.php:30
>  
> ...and on until PHP kills the process.

This should be fixed now.  Was a chicken/egg problem with Horde_Db.   
In short, since other things potentially rely on DB connections (e.g.  
Cache/Log), the DB object must first be created, the helper objects  
created, and then these helper objects need to be inserted back into  
the DB object.

Heh - cyclic dependencies coming to bite me in the rear.  I'm sure  
this can probably be done somehow with a Horde_Db specific injector,  
but I'll leave that as an exercise for someone who understands that  
stuff better than I do.

michael

-- 
___________________________________
Michael Slusarz [slusarz at horde.org]




More information about the dev mailing list