cvs: php-src /ext/date/tests bug48678.phpt

From: Date: Thu, 25 Jun 2009 15:04:14 +0000
Subject: cvs: php-src /ext/date/tests bug48678.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-58994@lists.php.net to get a copy of this message
johannes Thu Jun 25 15:04:14 2009 UTC Added files: /php-src/ext/date/tests bug48678.phpt Log: Add test http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/bug48678.phpt?view=markup&rev=1.1 Index: php-src/ext/date/tests/bug48678.phpt +++ php-src/ext/date/tests/bug48678.phpt --TEST-- Bug #48678 DateInterval segfaults when unserialising --FILE-- <?php $x = new dateinterval("P3Y6M4DT12H30M5S"); print_r($x); $y = unserialize(serialize($x)); print_r($y); --EXPECT-- DateInterval Object ( [y] => 3 [m] => 6 [d] => 4 [h] => 12 [i] => 30 [s] => 5 [invert] => 0 [days] => 0 ) DateInterval Object ( [y] => 3 [m] => 6 [d] => 4 [h] => 12 [i] => 30 [s] => 5 [invert] => 0 [days] => 0 )

« previous php.cvs (#58994) next »