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==DONE== 15--EXPECT-- 16object(DateInterval)#1 (16) { 17 ["y"]=> 18 int(2) 19 ["m"]=> 20 int(0) 21 ["d"]=> 22 int(4) 23 ["h"]=> 24 int(6) 25 ["i"]=> 26 int(8) 27 ["s"]=> 28 int(0) 29 ["f"]=> 30 float(0) 31 ["weekday"]=> 32 int(0) 33 ["weekday_behavior"]=> 34 int(0) 35 ["first_last_day_of"]=> 36 int(0) 37 ["invert"]=> 38 int(0) 39 ["days"]=> 40 bool(false) 41 ["special_type"]=> 42 int(0) 43 ["special_amount"]=> 44 int(0) 45 ["have_weekday_relative"]=> 46 int(0) 47 ["have_special_relative"]=> 48 int(0) 49} 50object(DateInterval)#2 (16) { 51 ["y"]=> 52 int(2) 53 ["m"]=> 54 int(0) 55 ["d"]=> 56 int(4) 57 ["h"]=> 58 int(6) 59 ["i"]=> 60 int(8) 61 ["s"]=> 62 int(0) 63 ["f"]=> 64 float(0) 65 ["weekday"]=> 66 int(0) 67 ["weekday_behavior"]=> 68 int(0) 69 ["first_last_day_of"]=> 70 int(0) 71 ["invert"]=> 72 int(0) 73 ["days"]=> 74 bool(false) 75 ["special_type"]=> 76 int(0) 77 ["special_amount"]=> 78 int(0) 79 ["have_weekday_relative"]=> 80 int(0) 81 ["have_special_relative"]=> 82 int(0) 83} 84==DONE== 85