Bug->Doc #51866 [Asn->Csd]: DateTime::createFromFormat does not match documentation
| From: | salathe@php.net | Date: | Sat, 22 May 2010 19:23:55 +0000 |
| Subject: | Bug->Doc #51866 [Asn->Csd]: DateTime::createFromFormat does not match documentation | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4424@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51866&edit=1
ID: 51866
Updated by: salathe@php.net
Reported by: smalyshev at sugarcrm dot com
Summary: DateTime::createFromFormat does not match
documentation
-Status: Assigned
+Status: Closed
-Type: Bug
+Type: Documentation Problem
Package: Date/time related
Operating System: *
PHP Version: 5.3SVN-2010-05-20 (SVN)
Assigned To: salathe
New Comment:
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.
The description of "!" now matches what the code does, as well as the
example that was already available in the documentation.
Previous Comments:
------------------------------------------------------------------------
[2010-05-22 21:13:12] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=299631
Log: Correct description of special ! character. Fixes #51866
------------------------------------------------------------------------
[2010-05-22 19:07:44] derick@php.net
The docs are wrong here. If you specify a format letter, that
information needs to be there.
------------------------------------------------------------------------
[2010-05-21 00:05:22] stas@php.net
I don't think it's a docs problem - it'd be much better if DateTime
actually did what the docs say - at least as one of the options. Without
it, if you have a string with date in it, you can not really find out
where the date begins and ends and have no way to do parsing of partial
dates.
------------------------------------------------------------------------
[2010-05-20 10:20:06] salathe@php.net
I believe this is an issue of documentation rather than implementation,
the quoted
portion of the manual describes different behaviour than what the code
appears to
do. I'll assign this to Derick to confirm one way or the other.
------------------------------------------------------------------------
[2010-05-20 04:02:19] stas@php.net
It also would be nice if this function could ignore extra input after
the parsing and/or return where it stopped.
------------------------------------------------------------------------
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/bug.php?id=51866
--
Edit this bug report at http://bugs.php.net/bug.php?id=51866&edit=1