Patch set-lenient-ex.patch for intl Bug #66477
Patch version 2015-04-17 18:32 UTC
Return to Bug #66477 |
Download this patch
Patch Revisions:
Developer: cmb@php.net
Index: en/reference/intl/dateformatter/set-lenient.xml
===================================================================
--- en/reference/intl/dateformatter/set-lenient.xml (revision 336570)
+++ en/reference/intl/dateformatter/set-lenient.xml (working copy)
@@ -76,7 +76,7 @@
IntlDateFormatter::FULL,
'America/Los_Angeles',
IntlDateFormatter::GREGORIAN,
- 'dd/mm/yyyy'
+ 'dd/MM/yyyy'
);
echo 'lenient of the formatter is : ';
if ($fmt->isLenient()) {
@@ -91,7 +91,7 @@
echo "\nError_code is : " . intl_get_error_code();
}
datefmt_set_lenient($fmt, false);
-echo 'Now lenient of the formatter is : ';
+echo "\nNow lenient of the formatter is : ";
if ($fmt->isLenient()) {
echo 'TRUE';
} else {
@@ -119,7 +119,7 @@
IntlDateFormatter::FULL,
'America/Los_Angeles',
IntlDateFormatter::GREGORIAN,
- 'dd/mm/yyyy'
+ 'dd/MM/yyyy'
);
echo 'lenient of the formatter is : ';
if ($fmt->isLenient()) {
@@ -135,7 +135,7 @@
}
$fmt->setLenient(FALSE);
-echo 'Now lenient of the formatter is : ';
+echo "\nNow lenient of the formatter is : ";
if ($fmt->isLenient()) {
echo 'TRUE';
} else {
@@ -157,7 +157,7 @@
<![CDATA[
lenient of the formatter is : TRUE
Trying to do parse('35/13/1971').
-Result is : -2147483
+Result is : 66038400
Now lenient of the formatter is : FALSE
Trying to do parse('35/13/1971').
Result is :
|