]> granicus.if.org Git - php/commitdiff
bug 47886: fix test which failed during DST. Microsoft api working as designed, but...
authorDave Kelsey <dkelsey@php.net>
Mon, 6 Apr 2009 08:30:20 +0000 (08:30 +0000)
committerDave Kelsey <dkelsey@php.net>
Mon, 6 Apr 2009 08:30:20 +0000 (08:30 +0000)
ext/standard/tests/file/touch_basic-win32.phpt

index 3bd22aeeae4f45fbc529ccf3be1ca180655a8d67..0e4cc3142eeccf2ae174099b774cab8a41004e91 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Test touch() function : basic functionality 
---CREDITS--
-Dave Kelsey <d_kelsey@uk.ibm.com>
 --SKIPIF--
 <?php
 if (substr(PHP_OS, 0, 3) != 'WIN') {
@@ -16,6 +14,12 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
  * Alias to functions: 
  */
 
+ /*
+  * NOTE: Windows UTime functionality is influenced by DST so outputs 
+  * different values during DST. This is WAD according to Microsoft. The test has been
+  * modified to reflect this in the expected output
+  */
+
 echo "*** Testing touch() : basic functionality ***\n";
 
 $filename = dirname(__FILE__)."/touch.dat";
@@ -90,6 +94,6 @@ stat data differs at mtime
  --- testing touch using all parameters ---
 bool(true)
 ctime=%d
-mtime=10000
-atime=20470
+mtime=%r10000|6400%r
+atime=%r20470|16870%r
 Done