|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-06-25 20:03 UTC] ovidiu dot leferman at gmail dot com
Description:
------------
var_dump(strtotime('1214431944'));
returning int(-805297517)
Reproduce code:
---------------
var_dump(strtotime('1214431944'));
Expected result:
----------------
false / -1
Actual result:
--------------
int(-805297517)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 22:00:02 2025 UTC |
THis is not a bug, it simply parses this as "12:13:43 1948"): derick@kossu:~$ php -r 'var_dump(date_parse("1214431944"));' array(12) { ["year"]=> int(1944) ["month"]=> bool(false) ["day"]=> bool(false) ["hour"]=> int(12) ["minute"]=> int(14) ["second"]=> int(43) ["fraction"]=> float(0) ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(0) ["errors"]=> array(0) { } ["is_localtime"]=> bool(false) }