#1200: AgaviDoctrineDatabase handles empty configuration parameters incorrectly
----------------------+-----------------------------------------------------
 Reporter:  david     |       Owner:  david
     Type:  defect    |      Status:  new  
 Priority:  normal    |   Milestone:  1.0.2
Component:  database  |     Version:  1.0.1
 Severity:  normal    |    Keywords:       
Has_patch:  0         |  
----------------------+-----------------------------------------------------
 For example:
 {{{
 #!xml
 <database name="foo" class="AgaviDoctrineDatabase">
   <ae:parameter name="attributes">
     <!-- <ae:parameter name="validate">none</ae:parameter> -->
   </ae:parameter>
 </database>
 }}}
 Would turn autocommit off, as the value is an empty string (has text
 content), which is then cast to an array by the code that loops over
 params, and the int value for autocommit is 0, which is an index this cast
 array will have.

-- 
Ticket URL: <http://trac.agavi.org/ticket/1200>
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