1--TEST-- 2Bug #53437 (Check that var_dump out is the same using the whole object or it's single properties), variation 4 3--INI-- 4date.timezone = Europe/Berlin 5--FILE-- 6<?php 7$dt = new DateTime('2009-10-11'); 8 9$df = $dt->diff(new DateTime('2009-10-13')); 10 11var_dump($df, 12 $df->y, 13 $df->m, 14 $df->d, 15 $df->h, 16 $df->i, 17 $df->s, 18 $df->invert, 19 $df->days); 20 21?> 22==DONE== 23--EXPECTF-- 24object(DateInterval)#%d (15) { 25 ["y"]=> 26 int(0) 27 ["m"]=> 28 int(0) 29 ["d"]=> 30 int(2) 31 ["h"]=> 32 int(0) 33 ["i"]=> 34 int(0) 35 ["s"]=> 36 int(0) 37 ["weekday"]=> 38 int(0) 39 ["weekday_behavior"]=> 40 int(0) 41 ["first_last_day_of"]=> 42 int(0) 43 ["invert"]=> 44 int(0) 45 ["days"]=> 46 int(2) 47 ["special_type"]=> 48 int(0) 49 ["special_amount"]=> 50 int(0) 51 ["have_weekday_relative"]=> 52 int(0) 53 ["have_special_relative"]=> 54 int(0) 55} 56int(0) 57int(0) 58int(2) 59int(0) 60int(0) 61int(0) 62int(0) 63int(2) 64==DONE== 65