Annotation of embedaddon/php/ext/standard/tests/file/realpath_basic4.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test realpath() with relative paths
        !             3: --SKIPIF--
        !             4: <?php
        !             5: if (substr(PHP_OS, 0, 3) == 'WIN') {
        !             6:     die('skip no symlinks on Windows');
        !             7: }
        !             8: ?>
        !             9: --FILE--
        !            10: <?php
        !            11: $file_path = dirname(__FILE__);
        !            12: @mkdir("$file_path/realpath_basic/home/test", 0777, true);
        !            13: @symlink("$file_path/realpath_basic/home", "$file_path/realpath_basic/link1");
        !            14: @symlink("$file_path/realpath_basic/link1", "$file_path/realpath_basic/link2");
        !            15: echo "1. " . realpath("$file_path/realpath_basic/link2") . "\n";
        !            16: echo "2. " . realpath("$file_path/realpath_basic/link2/test") . "\n";
        !            17: ?>
        !            18: --CLEAN--
        !            19: <?php
        !            20: $file_path = dirname(__FILE__);
        !            21: unlink("$file_path/realpath_basic/link2");
        !            22: unlink("$file_path/realpath_basic/link1");
        !            23: rmdir("$file_path/realpath_basic/home/test");
        !            24: rmdir("$file_path/realpath_basic/home");
        !            25: rmdir("$file_path/realpath_basic");
        !            26: ?>
        !            27: --EXPECTF--
        !            28: 1. %s%erealpath_basic%ehome
        !            29: 2. %s%erealpath_basic%ehome%etest

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>