Bug #66486 [Com]: strtotime on string with whitespace gives current timestamp not false
| From: | thiago at carvalho dot fm | Date: | Sat, 08 Mar 2014 00:40:12 +0000 |
| Subject: | Bug #66486 [Com]: strtotime on string with whitespace gives current timestamp not false | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-184617@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
Comment by: thiago at carvalho dot fm
Reported by: neufeind@php.net
Summary: strtotime on string with whitespace gives current
timestamp not false
Status: Open
Type: Bug
Package: Date/time related
PHP Version: 5.5.8
Block user comment: N
Private report: N
New Comment:
Pull request
https://github.com/php/php-src/pull/615
Previous Comments:
------------------------------------------------------------------------
[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