|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-02-05 10:22 UTC] derick@php.net
-Status: Open
+Status: Not a bug
[2015-02-05 10:22 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 12:00:02 2026 UTC |
Description: ------------ I passed two different timestamp to strtotime() function. I expected both of them will returns false, but the second one returns a big int! Test script: --------------- <?php date_default_timezone_set("Asia/Shanghai"); echo date('Y-m-d H:i:s', 1423122337) . '<br/>'; //2015-02-05 15:45:37 echo date('Y-m-d H:i:s', 1738598400) . '<br/>'; //2025-02-04 00:00:00 var_dump(strtotime('1423122337')); //bool(false) var_dump(strtotime('1738598400')); //int(202914236339) Expected result: ---------------- 2015-02-05 15:45:37 2025-02-04 00:00:00 bool(false) bool(false) Actual result: -------------- 2015-02-05 15:45:37 2025-02-04 00:00:00 bool(false) int(202914236339)