php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #61896 Invalid default value of the lenient for IntlDateFormatter
Submitted: 2012-05-02 06:17 UTC Modified: 2012-05-03 06:16 UTC
From: kubo at iteman dot jp Assigned: takagi (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2012-05-02 06:17 UTC] kubo at iteman dot jp
Description:
------------
The documentation says "The default value of the lenient for the 
IntlDateFormatter class is false (strict)." but actually the default value is 
true (not strict).

Specifically, the documentation of the IntlDateFormatter::isLenient() method 
(http://www.php.net/manual/en/intldateformatter.islenient.php) is written as the 
following:

...
Return Values:
TRUE if parser is lenient, FALSE if parser is strict. *By default the parser is 
strict*.

and the documentation of the IntlDateFormatter::setLenient() method 
(http://www.php.net/manual/en/intldateformatter.setlenient.php) is written as 
the following:

...
Parameters:
...
lenient
Sets whether the parser is lenient or not, *default is FALSE (strict)*.

In both cases, the default parser is lenient actually. And also their examples 
have shown that the default parser is lenient.



Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-03 06:12 UTC] takagi@php.net
Automatic comment from SVN on behalf of takagi
Revision: http://svn.php.net/viewvc/?view=revision&revision=325509
Log: Correct default value of the leniency of the parser. Close #61896.
 [2012-05-03 06:16 UTC] takagi@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2012-05-03 06:16 UTC] takagi@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: takagi
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 22 03:01:27 2024 UTC