From 99aa5484e2c5ba73e32cef50ae54495f8dab4023 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 10 Jul 2020 11:19:01 +0200 Subject: [PATCH] Enable further ext/standard/tests/file tests on Windows --- ext/standard/tests/file/fileinode_variation.phpt | 5 +++-- ext/standard/tests/file/fopen_variation10-win32.phpt | 6 +++--- ext/standard/tests/file/fopen_variation11-win32.phpt | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ext/standard/tests/file/fileinode_variation.phpt b/ext/standard/tests/file/fileinode_variation.phpt index 881aa2ce59..4006d94ffa 100644 --- a/ext/standard/tests/file/fileinode_variation.phpt +++ b/ext/standard/tests/file/fileinode_variation.phpt @@ -2,8 +2,9 @@ Test fileinode() function: Variations --SKIPIF-- --FILE-- diff --git a/ext/standard/tests/file/fopen_variation10-win32.phpt b/ext/standard/tests/file/fopen_variation10-win32.phpt index 300cf52864..8041c59c84 100644 --- a/ext/standard/tests/file/fopen_variation10-win32.phpt +++ b/ext/standard/tests/file/fopen_variation10-win32.phpt @@ -7,7 +7,7 @@ Dave Kelsey if(substr(PHP_OS, 0, 3) != "WIN") die("skip Run only on Windows"); -if (!is_writable('c:\\fopen_variation10.tmp')) { +if (!is_writable('c:\\')) { die('skip. C:\\ not writable.'); } @@ -102,14 +102,14 @@ Warning: fclose() expects parameter 1 to be resource, bool given in %s on line % --\-- -Warning: fopen(\\fopen_variation10.tmp): failed to open stream: Invalid argument in %s on line %d +Warning: fopen(\\fopen_variation10.tmp): failed to open stream: No such file or directory in %s on line %d file not opened for read Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d --/-- -Warning: fopen(/\fopen_variation10.tmp): failed to open stream: Invalid argument in %s on line %d +Warning: fopen(/\fopen_variation10.tmp): failed to open stream: No such file or directory in %s on line %d file not opened for read Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d diff --git a/ext/standard/tests/file/fopen_variation11-win32.phpt b/ext/standard/tests/file/fopen_variation11-win32.phpt index ed6508b69a..e40c48841d 100644 --- a/ext/standard/tests/file/fopen_variation11-win32.phpt +++ b/ext/standard/tests/file/fopen_variation11-win32.phpt @@ -6,7 +6,7 @@ Dave Kelsey