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~191^2~2021 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e0386cc67d3a64ed60ac6df8c644e70f1396d9d;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 new file mode 100644 index 0000000000..7aec433b38 --- /dev/null +++ b/ext/standard/tests/file/bug47767.phpt @@ -0,0 +1,50 @@ +--TEST-- +bug #47767 (include_once does not resolve windows symlinks or junctions) +--CREDITS-- +Venkat Raman Don +--SKIPIF-- +&1', $out); +if (strpos($ret, 'privilege')) { + die('skip. SeCreateSymbolicLinkPrivilege not enable for this user.'); +} +?> +--FILE-- +'; +file_put_contents($filename, $content); +$softlinkname = __DIR__ . '\\a_slink.php'; +symlink($filename, $softlinkname); +include_once("$filename"); +include_once("$softlinkname"); +include_once("$softlinkname"); + +echo "Testing include_once using directory symbolic link\n"; +$softdirlinkname = __DIR__ . "\\a_dir"; +symlink(__DIR__, $softdirlinkname); +include_once("$softdirlinkname" . '\\a.php'); + +echo "Testing include_once using junction points\n"; +$junctionname = __DIR__ . '\\a_jdir'; +exec("mklink /J $junctionname " . __DIR__); +include_once("$junctionname" . '\\a.php'); + +unlink($filename); +unlink($softlinkname); +rmdir($softdirlinkname); +rmdir($junctionname); +?> +--EXPECT-- +Testing include_once using file symbolic link +I am included +Testing include_once using directory symbolic link +Testing include_once using junction points \ No newline at end of file