mirror of
https://github.com/php/php-src.git
synced 2025-01-07 03:13:33 +08:00
- 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
This commit is contained in:
parent
93af22bbb9
commit
321172e479
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user