From:             viorel dot irimia at gmail dot com
Operating system: Debian GNU/Linux 4.0
PHP version:      5.2.6
PHP Bug Type:     Date/time related
Bug description:  var_dump(strtotime('1214431948'));

Description:
------------
It seems that var_dump(strtotime('1214431948')); is returning
int(-678980717) instead timestamp / false / -1
I belive is an overflow somewhere...

Version:
PHP Version 5.2.0-8+etch11
Build Date      May 10 2008 10:31:53
Linux 2.6.18-6-686, debian 4.0


Reproduce code:
---------------
var_dump(strtotime('1214431948'));
var_dump(strtotime('1214431946'));

Expected result:
----------------
false | -1
false | -1

Actual result:
--------------
int(-678980717)
int(-742139117)

-- 
Edit bug report at http://bugs.php.net/?id=45358&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45358&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45358&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45358&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45358&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45358&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45358&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45358&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45358&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45358&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45358&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45358&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45358&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45358&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45358&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45358&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45358&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45358&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45358&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45358&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45358&r=mysqlcfg

Reply via email to