mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
55626549d8
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.
69 lines
905 B
PHP
69 lines
905 B
PHP
--TEST--
|
|
Bug #53437 (Check that var_dump out is the same using the whole object or it's single properties), variation 4
|
|
--INI--
|
|
date.timezone = Europe/Berlin
|
|
--FILE--
|
|
<?php
|
|
$dt = new DateTime('2009-10-11');
|
|
|
|
$df = $dt->diff(new DateTime('2009-10-13'));
|
|
|
|
var_dump($df,
|
|
$df->y,
|
|
$df->m,
|
|
$df->d,
|
|
$df->h,
|
|
$df->i,
|
|
$df->s,
|
|
$df->f,
|
|
$df->invert,
|
|
$df->days);
|
|
|
|
?>
|
|
==DONE==
|
|
--EXPECTF--
|
|
object(DateInterval)#%d (16) {
|
|
["y"]=>
|
|
int(0)
|
|
["m"]=>
|
|
int(0)
|
|
["d"]=>
|
|
int(2)
|
|
["h"]=>
|
|
int(0)
|
|
["i"]=>
|
|
int(0)
|
|
["s"]=>
|
|
int(0)
|
|
["f"]=>
|
|
float(0)
|
|
["weekday"]=>
|
|
int(0)
|
|
["weekday_behavior"]=>
|
|
int(0)
|
|
["first_last_day_of"]=>
|
|
int(0)
|
|
["invert"]=>
|
|
int(0)
|
|
["days"]=>
|
|
int(2)
|
|
["special_type"]=>
|
|
int(0)
|
|
["special_amount"]=>
|
|
int(0)
|
|
["have_weekday_relative"]=>
|
|
int(0)
|
|
["have_special_relative"]=>
|
|
int(0)
|
|
}
|
|
int(0)
|
|
int(0)
|
|
int(2)
|
|
int(0)
|
|
int(0)
|
|
int(0)
|
|
float(0)
|
|
int(0)
|
|
int(2)
|
|
==DONE==
|