php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58253 DateFormatter::parse() and localtime() should have second arg pass-by-reference
Submitted: 2008-06-30 12:18 UTC Modified: 2008-07-10 17:58 UTC
From: david dot zuelke at bitextender dot com Assigned:
Status: Closed Package: intl (PECL)
PHP Version: Irrelevant OS: irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david dot zuelke at bitextender dot com
New email:
PHP Version: OS:

 

 [2008-06-30 12:18 UTC] david dot zuelke at bitextender dot com
Description:
------------
As discussed on the mailing list, DateFormatter::parse() and 
DateFormater::localtime() should have the second argument 
($parse_pos) as a reference - it is supposed to "return" the 
position where an error occured, in case it could not parse 
the given value. ICU does have it this way, and I think PHP 
should, too. It's pretty valuable information, and if only for 
debugging purposes.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-10 17:58 UTC] stas at zend dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

thanks
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 18:01:26 2020 UTC