summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/spl/tests/bug68825.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/spl/tests/bug68825.phpt b/ext/spl/tests/bug68825.phpt
index 4cd3af2fba..2dbfc7cd1d 100644
--- a/ext/spl/tests/bug68825.phpt
+++ b/ext/spl/tests/bug68825.phpt
@@ -1,5 +1,16 @@
--TEST--
Bug #68825 (Exception in DirectoryIterator::getLinkTarget())
+--SKIPIF--
+<?php
+if (PHP_OS_FAMILY === 'Windows') {
+ $fn = "bug68825.lnk";
+ $ret = exec("mklink $fn " . __FILE__ .' 2>&1', $out);
+ @unlink($fn);
+ if (strpos($ret, 'privilege')) {
+ die('skip. SeCreateSymbolicLinkPrivilege not enable for this user.');
+ }
+}
+?>
--FILE--
<?php
$dir = __DIR__ . '/bug68825';