1--TEST-- 2Bug #48678 (DateInterval segfaults when unserialising) 3--FILE-- 4<?php 5$x = new DateInterval("P3Y6M4DT12H30M5S"); 6print_r($x); 7$y = unserialize(serialize($x)); 8print_r($y); 9?> 10--EXPECT-- 11DateInterval Object 12( 13 [y] => 3 14 [m] => 6 15 [d] => 4 16 [h] => 12 17 [i] => 30 18 [s] => 5 19 [f] => 0 20 [invert] => 0 21 [days] => 22 [from_string] => 23) 24DateInterval Object 25( 26 [y] => 3 27 [m] => 6 28 [d] => 4 29 [h] => 12 30 [i] => 30 31 [s] => 5 32 [f] => 0 33 [invert] => 0 34 [days] => 35 [from_string] => 36) 37