Bug #66486 [ReO->Csd]: strtotime on string with whitespace gives current timestamp not false
| From: | derick@php.net | Date: | Fri, 13 May 2022 14:05:48 +0000 |
| Subject: | Bug #66486 [ReO->Csd]: strtotime on string with whitespace gives current timestamp not false | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-241498@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66486&edit=1
ID: 66486
Updated by: derick@php.net
Reported by: neufeind@php.net
Summary: strtotime on string with whitespace gives current
timestamp not false
-Status: Re-Opened
+Status: Closed
Type: Bug
Package: Date/time related
PHP Version: 5.5.8
-Assigned To:
+Assigned To: derick
Block user comment: N
Private report: N
New Comment:
I'm closing this (and the duplicate), as I am confused about this. Please open a new ticket at
https://github.com/php/php-src/issues if this is
still a pressing issue.
Previous Comments:
------------------------------------------------------------------------
[2018-08-14 21:06:51] cmb@php.net
Related To: Bug #72425
------------------------------------------------------------------------
[2018-08-12 18:53:51] carusogabriel@php.net
Automatic comment on behalf of carusogabriel34@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c0a44c668ed0692c97e0b60d56b0a5e42cd67a3c
Log: Fix #66486: strtotime only with whitespaces should return false
------------------------------------------------------------------------
[2014-03-08 20:36:25] derick@php.net
hmm, don't see much of a problem with this ... I would not classify this as a bug that needs
fixing.
------------------------------------------------------------------------
[2014-03-08 00:40:11] thiago at carvalho dot fm
Pull request
https://github.com/php/php-src/pull/615
------------------------------------------------------------------------
[2014-01-15 00:24:14] neufeind@php.net
Description:
------------
correct: strtotime('') => bool(false)
however I did not expect: strtotime(' ') => current timestamp
I don't think this is by intention, is it?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66486&edit=1