Bug #77952 [Opn->Nab]: strtotime() return error
| From: | requinix@php.net | Date: | Mon, 29 Apr 2019 09:21:37 +0000 |
| Subject: | Bug #77952 [Opn->Nab]: strtotime() return error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220646@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77952&edit=1
ID: 77952
Updated by: requinix@php.net
Reported by: gaozhiyong at hotmail dot com
Summary: strtotime() return error
-Status: Open
+Status: Not a bug
Type: Bug
-Package: *Data Exchange functions
+Package: Date/time related
Operating System: MacOS Mojava
PHP Version: 7.1.28
Block user comment: N
Private report: N
New Comment:
https://bugs.php.net/search.php?search_for=strtotime&limit=30&order_by=ts1&direction=DESC&cmd=display&status=Not+a+bug
Previous Comments:
------------------------------------------------------------------------
[2019-04-29 09:15:38] gaozhiyong at hotmail dot com
Description:
------------
February has no 31thï¼ but function strtotime() not return
falseï¼FebruaryãAprilãjune, Septemberï¼November included
Test script:
---------------
<?php
$a = '2019-2-31';
$b = strtotime($a);
echo $b;
Expected result:
----------------
false
Actual result:
--------------
1551542400
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77952&edit=1