]> granicus.if.org Git - php/commitdiff
- skip if not enough permission and add to trunk
authorPierre Joye <pajoye@php.net>
Wed, 27 Jan 2010 23:54:52 +0000 (23:54 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 27 Jan 2010 23:54:52 +0000 (23:54 +0000)
ext/standard/tests/file/bug47767.phpt

index 62388c28cb6fa6623caa41962c550aaae67dc85e..312476aa55232913e6412a1b89940ed599c0349c 100644 (file)
@@ -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--
 <?php