#50392 [Opn->Asn]: date_create_from_format enforces 6 digits for 'u' format character
| From: | jani@php.net | Date: | Fri, 12 Feb 2010 21:54:35 +0000 |
| Subject: | #50392 [Opn->Asn]: date_create_from_format enforces 6 digits for 'u' format character | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147531@lists.php.net to get a copy of this message | ||
ID: 50392
Updated by: jani@php.net
Reported By: grodny at oneclick dot sk
-Status: Open
+Status: Assigned
Bug Type: Date/time related
Operating System: *
PHP Version: 5.3.1
Assigned To: derick
Previous Comments:
------------------------------------------------------------------------
[2010-02-11 11:11:49] svn@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=294880
Log: - merge fix for: #45866,#50930, revert fix for #50392, Fixed a bug
with the 'r' formatting function, added or fixed tests for #45866 and
#46268
------------------------------------------------------------------------
[2010-02-10 16:23:33] svn@php.net
Automatic comment from SVN on behalf of derick
Revision: http://svn.php.net/viewvc/?view=revision&revision=294854
Log: - Added a test case for bug #45866
- Fixed tests: oo_002, bug46268
- Fixed bug #50930 (Wrong date by php_date.c patch with ancient
gcc/glibc
versions).
- Make sure faulty strings passed to DateTime::modify() notify the
user.
- Revert fix for bug #50392 as it was fixed wrongly without a proper
test case.
- Fixed a bug with the 'r' formatting function as the default buffer
size that
was allocated only fit 4 digit years.
------------------------------------------------------------------------
[2010-02-10 14:32:05] derick@php.net
Reopening as this bug was fixed incorrectly. It would treat "0010" as
"000010" which is not what it is meant to do. The test case didn't
properly test the values either.
------------------------------------------------------------------------
[2009-12-15 12:40:47] iliaa@php.net
This bug has been fixed in SVN.
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.
------------------------------------------------------------------------
[2009-12-15 12:34:17] svn@php.net
Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=292162
Log: Fixed bu #50392 (date_create_from_format() enforces 6 digits for
'u' format character)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/50392
--
Edit this bug report at http://bugs.php.net/?id=50392&edit=1