Issue Type: Bug Created: 2011-06-13T13:30:14.000+0000 Last Updated: 2011-06-25T11:05:15.000+0000 Status: Open Fix version(s): Reporter: François Crevola (partner) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date
Related issues: Attachments:
The following code will result in an infinite loop in Zend_Date constructor.
toString("yyyy-MM-dd HH:mm:ss"); ?>Posted by Sebastian Keßler (bytehoven) on 2011-06-25T11:05:15.000+0000
There is also an infinite loop when giving values higher than 1.0E+308(php float range) to the constructor. Maybe there should be some range checks?
Here´s the code leads to infinite loop, because of the float inv (e.g. with 1.0E+309) Zend_Date_DateObject protected function date() while (abs($tempstamp) > 0x7FFFFFFF) { $tempstamp -= (86400 * 23376); }