The 32bit Overflow occurs on 2038 not 2042 ;-)

Thomas Weidner

Zend Framework Certified Engineer & I18N Team Leader
http://www.thomasweidner.com

-----Ursprüngliche Nachricht-----
Von: Daniel Latter [mailto:[email protected]] 
Gesendet: Freitag, 08. Oktober 2010 22:52
An: Zend Framework General
Betreff: [fw-general] Zend_Validate_Date returns false for dates between:
28/10/2038 and 19/03/2042

Hi all,

I posted an issue (as in the title of this post) on the tracker:

http://framework.zend.com/issues/browse/ZF-10525

I have later realised it may have something to do with the 32-bit integer
limit but I dont understand why Zend_validate_Date starts to return true
after the date mentioned (19/03/2042) ?

Is it because overflow occurs in the bit pattern for the number so the
number falls back into the 32-bit integer range again?

Thanks
Daniel

Reply via email to