From:             remi
Operating system: GNU/Linux 64bits
PHP version:      5.3.25
Package:          Calendar related
Bug Type:         Bug
Bug description:interger overflow in SndToJewish

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 bug report at https://bugs.php.net/bug.php?id=64895&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64895&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64895&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64895&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64895&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64895&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64895&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64895&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64895&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64895&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64895&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64895&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64895&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64895&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64895&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64895&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64895&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64895&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64895&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64895&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64895&r=mysqlcfg

Reply via email to