mirror of
https://github.com/php/php-src.git
synced 2026-04-14 19:41:05 +02:00
Enable further ext/standard/tests/file tests on Windows
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
Test fileinode() function: Variations
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||||
die('skip no link()/symlink() on Windows');
|
||||
if (PHP_OS_FAMILY === 'Windows') {
|
||||
require_once __DIR__ . '/windows_links/common.inc';
|
||||
skipIfSeCreateSymbolicLinkPrivilegeIsDisabled(__FILE__);
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
|
||||
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
|
||||
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
|
||||
|
||||
@@ -6,7 +6,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
|
||||
<?php
|
||||
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.');
|
||||
}
|
||||
|
||||
@@ -100,14 +100,14 @@ Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %
|
||||
|
||||
--\--
|
||||
|
||||
Warning: fopen(\\FOPEN_VARIATION11.TMP): failed to open stream: Invalid argument in %s on line %d
|
||||
Warning: fopen(\\FOPEN_VARIATION11.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_VARIATION11.TMP): failed to open stream: Invalid argument in %s on line %d
|
||||
Warning: fopen(\\FOPEN_VARIATION11.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
|
||||
|
||||
Reference in New Issue
Block a user