#41709 [Asn->Csd]: error in date_parse function
| From: | derick@php.net | Date: | Thu, 12 Jul 2007 19:01:26 +0000 |
| Subject: | #41709 [Asn->Csd]: error in date_parse function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114978@lists.php.net to get a copy of this message | ||
ID: 41709
Updated by: derick@php.net
Reported By: xsuchy09 at gmail dot com
-Status: Assigned
+Status: Closed
Bug Type: Date/time related
Operating System: Windows XP
PHP Version: 5.2.3
Assigned To: derick
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-07-09 19:13:08] derick@php.net
This is actually a bug, it should only go to "2000" if a two-digit year
(like "00") is used.
------------------------------------------------------------------------
[2007-06-17 14:21:54] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
------------------------------------------------------------------------
[2007-06-15 20:46:37] xsuchy09 at gmail dot com
Description:
------------
date_parse function returns wrong value in year index in returned array
when parameter is '00.00.0000 - 00:00:00'
Reproduce code:
---------------
$date_string = '00.00.0000 - 00:00:00';
print_r(date_parse($date_string));
Expected result:
----------------
Array ( [year] => 0000 [month] => 0 [day] => 0 [hour] => 0 [minute] =>
0 [second] => 0 [fraction] => 0 [warning_count] => 0 [warnings] => Array
( ) [error_count] => 1 [errors] => Array ( [11] => Unexpected character
) [is_localtime] => )
Actual result:
--------------
Array ( [year] => 2000 [month] => 0 [day] => 0 [hour] => 0 [minute] =>
0 [second] => 0 [fraction] => 0 [warning_count] => 0 [warnings] => Array
( ) [error_count] => 1 [errors] => Array ( [11] => Unexpected character
) [is_localtime] => )
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41709&edit=1