Edit report at https://bugs.php.net/bug.php?id=64895&edit=1

 ID:                 64895
 Updated by:         r...@php.net
 Reported by:        r...@php.net
 Summary:            interger overflow in SndToJewish
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            Calendar related
 Operating System:   GNU/Linux 64bits
 PHP Version:        5.3.25
 Assigned To:        remi
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of remi
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=fc2a9d6e47ae23adb28122539b56df0d6195bdce
Log: Fixed bug #64895 Integer overflow in SndToJewish


Previous Comments:
------------------------------------------------------------------------
[2013-05-22 06:00:25] r...@php.net

Description:
------------
Interger overflow occurs in SndToJewish

Last correct value is 324542846

With very large value (ex: 9223372036854746369), php hangs.

Test script:
---------------
<?php
for ($i=324542840; $i<324542850; $i++) 
echo "$i:".jdtojewish($i)."\n";'


Expected result:
----------------
324542840:12/7/887605
324542841:12/8/887605
324542842:12/9/887605
324542843:12/10/887605
324542844:12/11/887605
324542845:12/12/887605
324542846:12/13/887605
324542847:0/0/0
324542848:0/0/0
324542849:0/0/0

Actual result:
--------------
324542840:12/7/887605
324542841:12/8/887605
324542842:12/9/887605
324542843:12/10/887605
324542844:12/11/887605
324542845:12/12/887605
324542846:12/13/887605
324542847:3/434978988/887
324542848:3/434978989/887
324542849:3/434978990/887


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64895&edit=1

Reply via email to