#989: AgaviConfigCache::loadConfigHandlers() may trigger "cannot redeclare 
class"
notice under certain circumstances
--------------------+-------------------------------------------------------
 Reporter:  david   |       Owner:  david 
     Type:  defect  |      Status:  new   
 Priority:  normal  |   Milestone:  0.11.6
Component:  config  |     Version:  0.11.5
 Severity:  normal  |    Keywords:        
Has_patch:  0       |  
--------------------+-------------------------------------------------------
 If any of the required classes in there is used through autoloading (e.g.
 {{{AgaviConfigValueHolder}}}), and all the necessary config files up to
 this point are already compiled (so no config handlers are loaded yet),
 then loading the config handlers (by asking to compile a non-compiled
 config file) will cause the class file to be included twice, causing PHP
 to die with a fatal error.

 Solution: move all {{{require()}}} calls to {{{require_once()}}} in there.

-- 
Ticket URL: <http://trac.agavi.org/ticket/989>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to