Doc #61896 [NEW]: Invalid default value of the lenient for IntlDateFormatter

From: Date: Wed, 02 May 2012 06:17:23 +0000
Subject: Doc #61896 [NEW]: Invalid default value of the lenient for IntlDateFormatter
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8323@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Invalid default value of the lenient for IntlDateFormatter 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. -- Edit bug report at https://bugs.php.net/bug.php?id=61896&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61896&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61896&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61896&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61896&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61896&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61896&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61896&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61896&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61896&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61896&r=support Expected behavior: https://bugs.php.net/fix.php?id=61896&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61896&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61896&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61896&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61896&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61896&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61896&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61896&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61896&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61896&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61896&r=mysqlcfg

« previous php.doc.bugs (#8323) next »