|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-06-25 19:50 UTC] viorel dot irimia at gmail dot com
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)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 08:00:01 2025 UTC |
'1214431948' is being understood as 'HHiissYYYY' var_dump(date('Y-m-d H:i:s', strtotime('1214431947'))); will show you what's happening.