improve skipif

This commit is contained in:
Anatol Belski 2016-12-01 13:25:28 +01:00
parent 54244ba565
commit 8ecbb660d0

View File

@ -5,6 +5,10 @@ Bug #47517 test registry virtualization disabled
if (substr(PHP_OS, 0, 3) != 'WIN') {
die('skip only for Windows');
}
exec('net session 2>&1', $out, $status);
if ($status) {
die('skip test runs under an elevated user account');
}
?>
--FILE--
<?php