#1253: Integer over/underflow problem in AgaviDecimalFormatter
--------------------+-------------------------------------------------------
 Reporter:  david   |       Owner:  david
     Type:  defect  |      Status:  new  
 Priority:  normal  |   Milestone:  1.0.3
Component:  util    |     Version:  1.0.2
 Severity:  normal  |    Keywords:       
Has_patch:  0       |  
--------------------+-------------------------------------------------------
 {{{
 $num = (int) str_replace($groupingSeparator, '', $match['num']);
 }}}
 is the culprit.

 PHP will automatically convert strings that are too big to fit into an int
 to float, so we should take advantage of this.

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