summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-07-09 10:43:20 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-07-10 10:08:12 +0200
commit68293b19d4c07890ef43d59cd24755c5f182ed48 (patch)
tree5a49f93e744299c1b9a525725af274a48cade97f /ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt
parentb291c926937fdcf3635a8aa3b83571f591c8c022 (diff)
downloadphp-git-68293b19d4c07890ef43d59cd24755c5f182ed48.tar.gz
Enable symlink_link_linkinfo_is_link_* tests on Windows
We mark symlink_link_linkinfo_is_link_error2.phpt as XFAIL on Windows ZTS. Several Windows API file system functions ignore trailing spaces in absolute filenames after the final directory separator, which causes `link(' ', $link)` to actually call `CreateHardLink()` which then fails, because linking folders is not supported. However, with NTS builds (as well as on other systems), the $target is found to not exist, so the function fails without actually attempting to create the link. This needs further investigation.
Diffstat (limited to 'ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt')
-rw-r--r--ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt b/ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt
index 7e22741aa8..6ace6c5ac4 100644
--- a/ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt
+++ b/ext/standard/tests/file/symlink_link_linkinfo_is_link_error2.phpt
@@ -2,8 +2,8 @@
Test symlink(), linkinfo(), link() and is_link() functions : error conditions - link & is_link
--SKIPIF--
<?php
-if (substr(PHP_OS, 0, 3) == 'WIN') {
- die('skip no symlinks on Windows');
+if (PHP_OS_FAMILY === 'Windows' && PHP_ZTS) {
+ die('xfail different handling of space as filename with ZTS/NTS on Windows');
}
?>
--FILE--