1--TEST-- 2Bug #53437 (DateInterval basic serialization) 3--FILE-- 4<?php 5$di0 = new DateInterval('P2Y4DT6H8M'); 6 7$s = serialize($di0); 8 9$di1 = unserialize($s); 10 11var_dump($di0, $di1); 12 13?> 14--EXPECTF-- 15object(DateInterval)#1 (%d) { 16 ["y"]=> 17 int(2) 18 ["m"]=> 19 int(0) 20 ["d"]=> 21 int(4) 22 ["h"]=> 23 int(6) 24 ["i"]=> 25 int(8) 26 ["s"]=> 27 int(0) 28 ["f"]=> 29 float(0) 30 ["invert"]=> 31 int(0) 32 ["days"]=> 33 bool(false) 34 ["from_string"]=> 35 bool(false) 36} 37object(DateInterval)#2 (%d) { 38 ["y"]=> 39 int(2) 40 ["m"]=> 41 int(0) 42 ["d"]=> 43 int(4) 44 ["h"]=> 45 int(6) 46 ["i"]=> 47 int(8) 48 ["s"]=> 49 int(0) 50 ["f"]=> 51 float(0) 52 ["invert"]=> 53 int(0) 54 ["days"]=> 55 bool(false) 56 ["from_string"]=> 57 bool(false) 58} 59