ZF-11473: Infinite loop in Zend_Date

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

  • 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); }

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.