aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2017-08-10 00:00:04 +0200
committerfilip <filip.komar@gmail.com>2017-08-10 00:00:04 +0200
commitc7a042e3784abb892eed23bf34c9649beb51c37e (patch)
tree688217f852052a68ac9685b2813954c77e22b46d /test
parent36da8e194f4afc8a61617672715d48209f5772cb (diff)
downloadwww-c7a042e3784abb892eed23bf34c9649beb51c37e.tar
www-c7a042e3784abb892eed23bf34c9649beb51c37e.tar.gz
www-c7a042e3784abb892eed23bf34c9649beb51c37e.tar.bz2
www-c7a042e3784abb892eed23bf34c9649beb51c37e.tar.xz
www-c7a042e3784abb892eed23bf34c9649beb51c37e.zip
esting server side fs 2
Diffstat (limited to 'test')
-rw-r--r--test/lang.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/lang.php b/test/lang.php
index 831376083..f41c50955 100644
--- a/test/lang.php
+++ b/test/lang.php
@@ -9,12 +9,15 @@ echo 'Accept-Language: ', $_SERVER['HTTP_ACCEPT_LANGUAGE'], "\n\n";
echo "Relocate `community` with `en` as a default: ", relocate($langs, 'community', 'en', null, false), "\n";
echo "\nTests:\n";
+
$test_dir = '../sv/';
$lstat = '';
if (file_exists($test_dir)) {
echo "The file $test_dir exists\n";
$lstat = lstat($test_dir);
+// $linkinfo = linkinfo($test_dir);
+ $readlink = readlink($test_dir . 'map');
} else {
echo "The file $test_dir does not exist\n";
}
@@ -32,3 +35,35 @@ if (is_readable($test_dir)) {
}
var_dump($lstat);
+var_dump($readlink);
+
+
+$test_dir = '../sl/';
+$lstat2 = '';
+
+if (file_exists($test_dir)) {
+ echo "The file $test_dir exists\n";
+ $lstat2 = lstat($test_dir);
+// $linkinfo = linkinfo($test_dir);
+ $readlink = readlink($test_dir . 'map');
+} else {
+ echo "The file $test_dir does not exist\n";
+}
+
+if (is_dir($test_dir)) {
+ echo "The $test_dir is a dir\n";
+} else {
+ echo "The $test_dir is not a dir.\n";
+}
+
+if (is_readable($test_dir)) {
+ echo "The file $test_dir is readable\n";
+} else {
+ echo "The file $test_dir is not readable\n";
+}
+
+var_dump($lstat2);
+var_dump($readlink);
+
+$diff = array_diff($lstat, $lstat2);
+var_dump($diff);