Bug #74930 [NEW]: when $timestamp > 1500367000, strtotime($timestamp) won't return false

From: Date: Sat, 15 Jul 2017 17:29:22 +0000
Subject: Bug #74930 [NEW]: when $timestamp > 1500367000, strtotime($timestamp) won't return false
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210069@lists.php.net to get a copy of this message
From: yaozeyuan93 at gmail dot com Operating system: Any PHP version: 5.6.31 Package: Date/time related Bug Type: Bug Bug description:when $timestamp > 1500367000, strtotime($timestamp) won't return false Description: ------------ according to [document](http://php.net/manual/en/function.strtotime.php#refsect1-function.strtotime-changelog), put number into strtotime will be ignore and return false. But if the number > 1500367000, strtotime will return a big number but not false instead Test script: --------------- <?php $timestamp = 1500367000; // result by strtotime('2017-7-18 16:36:40'),larger will also had this problem echo strtotime($timestamp); // while return 158748447636, not false Actual result: -------------- 158748447636 -- Edit bug report at https://bugs.php.net/bug.php?id=74930&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74930&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74930&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74930&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74930&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74930&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74930&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74930&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74930&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74930&r=support Expected behavior: https://bugs.php.net/fix.php?id=74930&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74930&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74930&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74930&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74930&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74930&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74930&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74930&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74930&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74930&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74930&r=mysqlcfg

« previous php.bugs (#210069) next »