Bug #71865 [Com]: strtotime treat as valid date

From: Date: Tue, 22 Mar 2016 03:23:45 +0000
Subject: Bug #71865 [Com]: strtotime treat as valid date
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200016@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71865&edit=1 ID: 71865 Comment by: finull at vip dot qq dot com Reported by: finull at vip dot qq dot com Summary: strtotime treat as valid date Status: Not a bug Type: Bug Package: Date/time related Operating System: MacOS X 10.11 PHP Version: 5.6.19 Block user comment: N Private report: N New Comment: I also got this output strtotime(1458363078) returns FALSE strtotime(1458373078) returns 34972066717 Why? Previous Comments: ------------------------------------------------------------------------ [2016-03-21 07:26:12] requinix@php.net You've discovered the HHMMSSYYYY format. ------------------------------------------------------------------------ [2016-03-21 07:13:17] finull at vip dot qq dot com Description: ------------ Found this bug when I use strtotime to checkout if input was valid date. strtotime(1458533078) should return FALSE, but it does't; Test script: --------------- $timestamp = strtotime(1458533078); // output: 34971980333 echo $timestamp; Expected result: ---------------- FALSE Actual result: -------------- 34971980333 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71865&edit=1

« previous php.bugs (#200016) next »