summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug52808.phpt
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2016-10-05 11:24:15 -0400
committerDerick Rethans <github@derickrethans.nl>2016-10-05 15:03:06 -0400
commit55626549d81d0feadb1d160be78fcf2b898a48cc (patch)
treea00c6239804f2ad68ccc3470e63e83eb18f7897f /ext/date/tests/bug52808.phpt
parentd5b77d66626b138a83b6c0d16f746893fefa29ee (diff)
downloadphp-git-microseconds.tar.gz
Improve support for microseconds with Date/Timemicroseconds
It fixes several bugs: - Fixed bug #45554 (Inconsistent behavior of the u format char). - Fixed bug #48225 (DateTime parser doesn't set microseconds for "now"). - Fixed bug #52514 (microseconds are missing in DateTime class). - Fixed bug #52519 (microseconds in DateInterval are missing). - Fixed bug #68506 (General DateTime improvments needed for microseconds to become useful). - Fixed bug #73109 (timelib_meridian doesn't parse dots correctly). - Fixed bug #73247 (DateTime constructor does not initialise microseconds property). It also updates timelib to 2016.04, and updates a data mapping file, which causes changes to the volatile abbreviations tests.
Diffstat (limited to 'ext/date/tests/bug52808.phpt')
-rw-r--r--ext/date/tests/bug52808.phpt12
1 files changed, 9 insertions, 3 deletions
diff --git a/ext/date/tests/bug52808.phpt b/ext/date/tests/bug52808.phpt
index 1f0fc84cd7..810874858f 100644
--- a/ext/date/tests/bug52808.phpt
+++ b/ext/date/tests/bug52808.phpt
@@ -25,7 +25,7 @@ foreach($intervals as $iv) {
echo "==DONE==\n";
?>
--EXPECTF--
-object(DateInterval)#%d (15) {
+object(DateInterval)#%d (16) {
["y"]=>
int(1)
["m"]=>
@@ -38,6 +38,8 @@ object(DateInterval)#%d (15) {
int(30)
["s"]=>
int(0)
+ ["f"]=>
+ float(0)
["weekday"]=>
int(0)
["weekday_behavior"]=>
@@ -57,7 +59,7 @@ object(DateInterval)#%d (15) {
["have_special_relative"]=>
int(0)
}
-object(DateInterval)#%d (15) {
+object(DateInterval)#%d (16) {
["y"]=>
int(0)
["m"]=>
@@ -70,6 +72,8 @@ object(DateInterval)#%d (15) {
int(30)
["s"]=>
int(0)
+ ["f"]=>
+ float(0)
["weekday"]=>
int(0)
["weekday_behavior"]=>
@@ -89,7 +93,7 @@ object(DateInterval)#%d (15) {
["have_special_relative"]=>
int(0)
}
-object(DateInterval)#%d (15) {
+object(DateInterval)#%d (16) {
["y"]=>
int(0)
["m"]=>
@@ -102,6 +106,8 @@ object(DateInterval)#%d (15) {
int(30)
["s"]=>
int(0)
+ ["f"]=>
+ float(0)
["weekday"]=>
int(0)
["weekday_behavior"]=>