/PHP-8.1/tests/security/ |
H A D | open_basedir_symlink.phpt | 18 var_dump(symlink($target, "../bad/symlink.txt")); 19 var_dump(symlink($target, "../symlink.txt")); 20 var_dump(symlink($target, "../bad/./symlink.txt")); 21 var_dump(symlink($target, "./.././symlink.txt")); 23 $symlink = ($initdir."/test/ok/symlink.txt"); 24 var_dump(symlink("../bad/bad.txt", $symlink)); 25 var_dump(symlink("../bad", $symlink)); 26 var_dump(symlink("../bad/./bad.txt", $symlink)); 27 var_dump(symlink("../bad/bad.txt", $symlink)); 28 var_dump(symlink("./.././bad", $symlink)); [all …]
|
H A D | open_basedir_linkinfo.phpt | 23 $symlink = ($initdir."/test/ok/symlink.txt"); 24 var_dump(symlink($target, $symlink)); 28 var_dump(linkinfo("symlink.txt")); 29 var_dump(linkinfo("../ok/symlink.txt")); 30 var_dump(linkinfo("../ok/./symlink.txt")); 31 var_dump(linkinfo("./symlink.txt")); 32 var_dump(linkinfo($initdir."/test/ok/symlink.txt")); 35 $symlink = ($initdir."/test/ok/symlink.txt"); 36 var_dump(symlink($target, $symlink)); 37 var_dump(linkinfo($symlink)); [all …]
|
H A D | open_basedir_readlink.phpt | 20 $symlink = ($initdir."/test/ok/symlink.txt"); 21 var_dump(symlink($target, $symlink)); 25 var_dump(readlink("symlink.txt")); 26 var_dump(readlink("../ok/symlink.txt")); 27 var_dump(readlink("../ok/./symlink.txt")); 28 var_dump(readlink("./symlink.txt")); 29 var_dump(readlink($initdir."/test/ok/symlink.txt")); 32 $symlink = ($initdir."/test/ok/symlink.txt"); 33 var_dump(symlink($target, $symlink)); 34 var_dump(readlink($symlink)); [all …]
|
/PHP-8.1/ext/standard/tests/file/ |
H A D | pathinfo_basic.phpt | 70 string(7) "symlink" 79 string(7) "symlink" 130 string(7) "symlink" 145 string(7) "symlink" 160 string(7) "symlink" 175 string(7) "symlink" 190 string(7) "symlink" 205 string(7) "symlink" 220 string(7) "symlink" 235 string(7) "symlink" [all …]
|
H A D | symlink_to_symlink.phpt | 2 symlink() using a relative path, and symlink() to a symlink 15 // symlink to a regular file using a relative dest 16 symlink(basename($prefix . "_file"), $prefix . "_link1"); 18 // symlink to a symlink using a relative path 19 symlink(basename($prefix . "_link1"), $prefix . "_link2"); 21 // symlink to a non-existent path 23 symlink(basename($prefix . "_nonexistent"), $prefix . "_link3"); 25 // symlink to a regular file using an absolute path 26 symlink($prefix . "_file", $prefix . "_link4"); 28 // symlink to a symlink using an absolute path [all …]
|
H A D | lchgrp_basic.phpt | 11 $symlink = __DIR__ . DIRECTORY_SEPARATOR . 'symlink.txt'; 16 var_dump( symlink( $filename, $symlink ) ); 18 var_dump( filegroup( $symlink ) === $gid ); 25 $symlink = __DIR__ . DIRECTORY_SEPARATOR . 'symlink.txt'; 27 unlink($symlink);
|
H A D | symlink_link_linkinfo_is_link_error1.phpt | 2 Test symlink(), linkinfo(), link() and is_link() functions : error conditions - symlink & linkinfo 19 echo "*** Testing symlink() for error conditions ***\n"; 22 var_dump( symlink('', $linkname) ); // empty string as filename 23 var_dump( symlink(false, $linkname) ); // boolean false as filename 24 var_dump( symlink($filename, '') ); // '' as linkname 25 var_dump( symlink($filename, false) ); // false as linkname 41 *** Testing symlink() for error conditions *** 43 Warning: symlink(): %s in %s on line %d 46 Warning: symlink(): %s in %s on line %d 49 Warning: symlink(): %s in %s on line %d [all …]
|
H A D | symlink.phpt | 2 symlink() & friends 12 $filename = __DIR__."/symlink.dat"; 13 $link = __DIR__."/symlink.link"; 15 var_dump(symlink($filename, $link)); 24 var_dump(symlink($filename, __DIR__)); 27 var_dump(symlink($filename, $link)); 31 var_dump(symlink($filename, $link)); 40 var_dump(symlink(".", ".")); 58 Warning: symlink(): File exists in %s on line %d 62 Warning: symlink(): File exists in %s on line %d [all …]
|
H A D | lchown_basic.phpt | 12 $symlink = __DIR__ . DIRECTORY_SEPARATOR . 'lchown_basic_symlink.txt'; 17 var_dump( symlink( $filename, $symlink ) ); 19 var_dump( fileowner( $symlink ) === $uid ); 26 $symlink = __DIR__ . DIRECTORY_SEPARATOR . 'lchown_basic_symlink.txt'; 28 unlink($symlink);
|
H A D | copy_variation8.phpt | 30 symlink($file, $symlink); //creating symlink 47 echo "- With symlink -\n"; 64 unlink($symlink); 77 - With symlink - 89 - With symlink - 101 - With symlink - 113 - With symlink - 125 - With symlink - 137 - With symlink - 149 - With symlink - [all …]
|
H A D | copy_variation7.phpt | 14 echo "*** Testing copy() with symlink and hardlink ***\n"; 20 $symlink = $file_path."/copy_variation7_symlink.tmp"; 23 symlink($file, $symlink); //creating symlink 27 var_dump( filesize($file_path."/copy_variation7_symlink.tmp") ); //size of the symlink itself 33 echo "-- With symlink --\n"; 34 var_dump( copy($symlink, $file_path."/copy_copy_variation7_symlink.tmp") ); 61 *** Testing copy() with symlink and hardlink *** 66 -- With symlink --
|
H A D | symlink_link_linkinfo_is_link_variation7.phpt | 2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - try link to self 30 var_dump( symlink($filename, $linkname) ); 32 var_dump( symlink($linkname, $linkname) ); 38 var_dump( symlink($dirname, $linkname) ); 40 var_dump( symlink($linkname, $linkname) ); 72 Warning: symlink(): File exists in %s on line %d 78 Warning: symlink(): File exists in %s on line %d
|
H A D | is_dir_variation2.phpt | 22 echo "-- With symlink --\n"; 23 symlink($file_path."/is_dir_variation2", $file_path."/is_dir_variation2_symlink"); 39 echo "-- With symlink --\n"; 40 symlink($file_path."/is_dir_variation2.tmp", $file_path."/is_dir_variation2_symlink.tmp"); 77 -- With symlink -- 86 -- With symlink --
|
H A D | symlink_link_linkinfo_is_link_basic2.phpt | 2 Test symlink(), linkinfo(), link() and is_link() functions: basic functionality - link to dirs 14 echo "*** Testing symlink(), linkinfo(), link() and is_link() : basic functionality ***\n"; 22 echo "\n*** Testing symlink(), linkinfo(), link() and is_link() on directory ***\n"; 33 var_dump( symlink("$file_path/$dirname", $sym_linkname) ); // this works, expected true 66 *** Testing symlink(), linkinfo(), link() and is_link() : basic functionality *** 68 *** Testing symlink(), linkinfo(), link() and is_link() on directory ***
|
H A D | symlink_link_linkinfo_is_link_variation3.phpt | 2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - access/update file … 28 var_dump( symlink($filename, $linkname) ); 29 // storing size of symlink in a local variable 45 // taking lstat of symlink 47 // checking that size of symlink remains same 67 // taking lstat of symlink 69 // checking that size of symlink remains same 89 // taking lstat of symlink 91 // checking that size of symlink remains same
|
H A D | rename_variation7-win32.phpt | 6 if (!function_exists("symlink")) die("skip symlinks are not supported"); 14 if (symlink(__DIR__."/there_is_no_such_file", $tmp_link)) { 29 Warning: symlink(): No such file or directory in %srename_variation7-win32.php on line %d
|
H A D | symlink_link_linkinfo_is_link_variation1.phpt | 2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - link name stored in… 24 echo "*** Testing symlink(), link(), linkinfo() and is_link() with linknames stored as members in a… 36 var_dump( symlink($filename, $obj->linkname) ); 61 echo "\n*** Testing symlink(), link(), linkinfo() and is_link() with linknames stored as members of… 68 var_dump( symlink($filename, $link_arr[0]) ); 105 *** Testing symlink(), link(), linkinfo() and is_link() with linknames stored as members in an obje… 117 *** Testing symlink(), link(), linkinfo() and is_link() with linknames stored as members of an arra…
|
H A D | realpath_basic4.phpt | 7 @symlink("$file_path/realpath_basic4/home", "$file_path/realpath_basic4/link1"); 8 @symlink("$file_path/realpath_basic4/link1", "$file_path/realpath_basic4/link2");
|
H A D | rename_variation7.phpt | 6 if (!function_exists("symlink")) die("skip symlinks are not supported"); 14 symlink(__DIR__."/there_is_no_such_file", $tmp_link);
|
H A D | filetype_variation.phpt | 31 echo "-- Checking with links: symlink --\n"; 32 symlink( $file2, $link2); 62 -- Checking with links: symlink --
|
H A D | symlink_link_linkinfo_is_link_variation8.phpt | 2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - try link with same … 47 var_dump( symlink($filename, $dirname."/") ); // this fails indicating file exists 49 var_dump( symlink($filename, $dirname."/".$linkname) ); // this works fine 68 Warning: symlink(): %rFile exists|Permission denied%r in %s on line %d
|
H A D | 001.phpt | 28 symlink('test.file','test.link'); 35 echo "test.file is a symlink\n"; 37 echo "test.file is not a symlink\n"; 40 echo "test.link is a symlink\n"; 42 echo "test.link is not a symlink\n"; 125 test.file is not a symlink 126 test.link is a symlink
|
H A D | rename_variation6.phpt | 6 if (!function_exists("symlink")) die("skip symlinks are not supported"); 16 symlink($tmp_file, $tmp_link);
|
/PHP-8.1/ext/spl/tests/ |
H A D | RecursiveDirectoryIterator_hasChildren.phpt | 10 } elseif (!symlink(__DIR__, $dir . DIRECTORY_SEPARATOR . 'symlink')) { 26 string(7) "symlink" 28 string(7) "symlink" 33 unlink($dir . DIRECTORY_SEPARATOR . 'symlink');
|
/PHP-8.1/ext/phar/tests/ |
H A D | bug81211.phpt | 20 symlink(__DIR__ . '/bug81211/foobar/file', __DIR__ . '/bug81211/foo/symlink'); 37 @unlink(__DIR__ . '/bug81211/foo/symlink');
|