From: Pierre Joye Date: Wed, 7 Dec 2011 09:03:07 +0000 (+0000) Subject: - print_r seems to display 0 or nothing for days, let make that test works in both... X-Git-Tag: php-5.4.0RC3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=321172e479872b5aec998d2a39290e3055ca997a;p=php - print_r seems to display 0 or nothing for days, let make that test works in both cases, that's not the purpose of this test to test print_r --- diff --git a/ext/date/tests/bug48678.phpt b/ext/date/tests/bug48678.phpt index 7e243351e3..ec39153787 100644 --- a/ext/date/tests/bug48678.phpt +++ b/ext/date/tests/bug48678.phpt @@ -6,7 +6,7 @@ $x = new DateInterval("P3Y6M4DT12H30M5S"); print_r($x); $y = unserialize(serialize($x)); print_r($y); ---EXPECT-- +--EXPECTF-- DateInterval Object ( [y] => 3 @@ -16,7 +16,7 @@ DateInterval Object [i] => 30 [s] => 5 [invert] => 0 - [days] => + [days] =>%s ) DateInterval Object ( @@ -27,5 +27,5 @@ DateInterval Object [i] => 30 [s] => 5 [invert] => 0 - [days] => + [days] =>%s )