From:             jonathancrossett at hotmail dot com
Operating system: Linux
PHP version:      5.0.0RC3
PHP Bug Type:     Date/time related
Bug description:  strtotime returning different results

Description:
------------
In PHP5-RC2 and RC3 when I try to add time to a time stamp with strtotime
I receive improper results. 

Reproduce code:
---------------
<?
for ($i = 0; $i < 4; $i++)
{
        $mytime = strtotime ($i);
        echo "<br> $mytime - " . strtotime("+1 minutes", $mytime);
}
?>

Expected result:
----------------
1086566400 - 1086566460
1086570000 - 1086570060
1086573600 - 1086573660
1086577200 - 1086577260

Actual result:
--------------
1086566400 - 1086566460
1086570000 - 1086566460
1086573600 - 1086566460
1086577200 - 1086566460

-- 
Edit bug report at http://bugs.php.net/?id=28774&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28774&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28774&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28774&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28774&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28774&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28774&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28774&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28774&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28774&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28774&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28774&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28774&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28774&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28774&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28774&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28774&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28774&r=float

Reply via email to