dkelsey Mon Apr 6 08:30:20 2009 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/file touch_basic-win32.phpt
Log:
bug 47886: fix test which failed during DST. Microsoft api working as
designed, but unexpected.
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/touch_basic-win32.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/standard/tests/file/touch_basic-win32.phpt
diff -u php-src/ext/standard/tests/file/touch_basic-win32.phpt:1.1.2.1
php-src/ext/standard/tests/file/touch_basic-win32.phpt:1.1.2.2
--- php-src/ext/standard/tests/file/touch_basic-win32.phpt:1.1.2.1 Tue Nov
25 11:31:25 2008
+++ php-src/ext/standard/tests/file/touch_basic-win32.phpt Mon Apr 6
08:30:20 2009
@@ -1,7 +1,5 @@
--TEST--
Test touch() function : basic functionality
---CREDITS--
-Dave Kelsey <[email protected]>
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) != 'WIN') {
@@ -16,6 +14,12 @@
* 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 @@
--- testing touch using all parameters ---
bool(true)
ctime=%d
-mtime=10000
-atime=20470
+mtime=%r10000|6400%r
+atime=%r20470|16870%r
Done
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php