#36266 [Com]: strtotime behavior change
| From: | judas dot iscariote at gmail dot com | Date: | Thu, 02 Feb 2006 21:29:14 +0000 |
| Subject: | #36266 [Com]: strtotime behavior change | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92855@lists.php.net to get a copy of this message | ||
ID: 36266
Comment by: judas dot iscariote at gmail dot com
Reported By: tim at komta dot com
Status: Assigned
Bug Type: Date/time related
Operating System: Windows XP Pro SP2
PHP Version: 5CVS-2006-02-02 (snap)
Assigned To: derick
New Comment:
$php5-debug strtotime.php
bool(false)
PHP 5.1.3-dev (cli) (built: Feb 2 2006 18:19:34) (DEBUG)
$php4-debug strtotime.php
int(1138888800)
PHP 4.4.3-dev (cli) (built: Feb 1 2006 13:49:49) (DEBUG)
Previous Comments:
------------------------------------------------------------------------
[2006-02-02 21:25:03] tim at komta dot com
strtotime('11') exhibits the same behavior change - seems that
strtotime can no longer handle only 2 digits for a time.
------------------------------------------------------------------------
[2006-02-02 20:57:17] tony2001@php.net
Assigned to the maintainer.
------------------------------------------------------------------------
[2006-02-02 20:42:09] tim at komta dot com
Description:
------------
Previously valid strtotime() attempts no longer parse to a time. This
worked prior to PHP 5.1, I believe.
Reproduce code:
---------------
<?php
echo strtotime('02/02/2006 11');
?>
Expected result:
----------------
1138896000 (with the server timezone set to EST)
Actual result:
--------------
FALSE
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36266&edit=1