]> granicus.if.org Git - php/commitdiff
- print_r seems to display 0 or nothing for days, let make that test works in both...
authorPierre Joye <pajoye@php.net>
Wed, 7 Dec 2011 09:03:07 +0000 (09:03 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 7 Dec 2011 09:03:07 +0000 (09:03 +0000)
ext/date/tests/bug48678.phpt
ext/date/tests/date_default_timezone_set-1.phpt

index 7e243351e3cc3e0be7a254deef4e1e3b59263029..ec39153787638665835e09f9a8bb5df61aa11141 100644 (file)
@@ -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
 )
index c6a6daf7a8421d8cd4426b764a8df45dbcec4931..bca8789e78530e49e642efc71fb51f03b4bad072 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 date_default_timezone_set() function [1]
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') die('skip diff TZ detection on windows.');
+?>
 --INI--
 date.timezone=
 --FILE--