From: Pierre Joye Date: Wed, 27 Jan 2010 23:54:52 +0000 (+0000) Subject: - skip if not enough permission and add to trunk X-Git-Tag: php-5.4.0alpha1~368 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c2f62c7a221d3d21269ca8d4b95a09d0934aaaf;p=php - skip if not enough permission and add to trunk --- diff --git a/ext/standard/tests/file/bug47767.phpt b/ext/standard/tests/file/bug47767.phpt index 62388c28cb..312476aa55 100644 --- a/ext/standard/tests/file/bug47767.phpt +++ b/ext/standard/tests/file/bug47767.phpt @@ -10,6 +10,11 @@ if(substr(PHP_OS, 0, 3) != 'WIN' ) { if(PHP_WINDOWS_VERSION_MAJOR < 6) { die('skip windows version 6.0+ only test'); } + +$ret = exec('mklink rename_variation13tmp.lnk ' . __FILE__ .' 2>&1', $out); +if (strpos($ret, 'privilege')) { + die('skip. SeCreateSymbolicLinkPrivilege not enable for this user.'); +} ?> --FILE--