summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/touch.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/touch.phpt')
-rw-r--r--ext/standard/tests/file/touch.phpt11
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/standard/tests/file/touch.phpt b/ext/standard/tests/file/touch.phpt
index aea68b0d44..c6c270d065 100644
--- a/ext/standard/tests/file/touch.phpt
+++ b/ext/standard/tests/file/touch.phpt
@@ -1,8 +1,16 @@
--TEST--
touch() tests
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+ die('skip.. only for Non Windows.');
+}
+?>
--FILE--
<?php
+// This doesn't work for windows, time, atime usage results in very different
+// output to linux. This could be a php.net bug on windows or a windows querk.
$filename = dirname(__FILE__)."/touch.dat";
var_dump(touch());
@@ -44,6 +52,7 @@ int(100)
bool(true)
int(100)
-Warning: touch(): Unable to create file /no/such/file/or/directory because No such file or directory in %s on line %d
+Warning: touch(): Unable to create file /no/such/file/or/directory because %s in %s on line %d
bool(false)
Done
+