fix test cleanup
authorAnatol Belski <ab@php.net>
Wed, 22 Jun 2016 10:20:02 +0000 (12:20 +0200)
committerAnatol Belski <ab@php.net>
Wed, 22 Jun 2016 10:20:02 +0000 (12:20 +0200)
ext/standard/tests/file/bug65701.phpt

index d375d322aef288b2592957d0273691c8e7dc9227..6d6899b0a8e2359a0c90862c3095e1fe02f3f995 100644 (file)
@@ -20,7 +20,7 @@ var_dump(filesize($dst));
 <?php
 $file_path = dirname(__FILE__) . "/bug65701/";
 foreach (scandir($file_path) as $file) {
-    if (strpos($file, "bug65701") !== false) {
+    if (strpos($file, "bug65701") !== false || 'WIN' == substr(PHP_OS, 0, 3)) {
         unlink($file_path . $file);
     }
 }