Home
last modified time | relevance | path

Searched refs:symlink (Results 1 – 25 of 76) sorted by relevance

1234

/PHP-5.4/tests/security/
H A Dopen_basedir_symlink.phpt18 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 Dopen_basedir_linkinfo.phpt23 $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 Dopen_basedir_readlink.phpt20 $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-5.4/ext/standard/tests/file/
H A Dsymlink_to_symlink.phpt2 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 Dsymlink_link_linkinfo_is_link_error1.phpt2 Test symlink(), linkinfo(), link() and is_link() functions : error conditions - symlink & linkinfo
40 var_dump( symlink() );
43 var_dump( symlink($filename, $linkname, true) );
50 var_dump( symlink($filename, '') ); // '' as linkname
73 *** Testing symlink() for error conditions ***
81 Warning: symlink(): %s in %s on line %d
84 Warning: symlink(): %s in %s on line %d
87 Warning: symlink(): %s in %s on line %d
90 Warning: symlink(): %s in %s on line %d
93 Warning: symlink(): %s in %s on line %d
[all …]
H A Dpathinfo_basic.phpt15 "$file_path/foo/symlink.link",
21 "$file_path/foo/symlink.link/",
24 "$file_path/foo//symlink.link",
25 "$file_path/foo//symlink.link",
74 %unicode|string%(7) "symlink"
134 %unicode|string%(7) "symlink"
149 %unicode|string%(7) "symlink"
252 string(12) "symlink.link"
254 string(7) "symlink"
259 string(12) "symlink.link"
[all …]
H A Dlchgrp_basic.phpt11 $symlink = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'symlink.txt';
16 var_dump( symlink( $filename, $symlink ) );
18 var_dump( filegroup( $symlink ) === $gid );
26 $symlink = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'symlink.txt';
28 unlink($symlink);
H A Dsymlink.phpt2 symlink() & friends
12 $filename = dirname(__FILE__)."/symlink.dat";
13 $link = dirname(__FILE__)."/symlink.link";
15 var_dump(symlink($filename, $link));
24 var_dump(symlink($filename, dirname(__FILE__)));
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 Dlchown_basic.phpt11 * Description: Change file owner of a symlink
18 $symlink = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'lchown_basic_symlink.txt';
23 var_dump( symlink( $filename, $symlink ) );
25 var_dump( fileowner( $symlink ) === $uid );
33 $symlink = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'lchown_basic_symlink.txt';
35 unlink($symlink);
H A Dcopy_variation8.phpt35 symlink($file, $symlink); //creating symlink
52 echo "- With symlink -\n";
69 unlink($symlink);
82 - With symlink -
94 - With symlink -
106 - With symlink -
118 - With symlink -
130 - With symlink -
142 - With symlink -
154 - With symlink -
[all …]
H A Dcopy_variation7.phpt20 echo "*** Testing copy() with symlink and hardlink ***\n";
26 $symlink = $file_path."/copy_variation7_symlink.tmp";
29 symlink($file, $symlink); //creating symlink
33 var_dump( filesize($file_path."/copy_variation7_symlink.tmp") ); //size of the symlink itself
39 echo "-- With symlink --\n";
40 var_dump( copy($symlink, $file_path."/copy_copy_variation7_symlink.tmp") );
69 *** Testing copy() with symlink and hardlink ***
74 -- With symlink --
H A Dsymlink_link_linkinfo_is_link_variation7.phpt2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - try link to self
11 /* Prototype: bool symlink ( string $target, string $link );
42 var_dump( symlink($filename, $linkname) );
44 var_dump( symlink($linkname, $linkname) );
50 var_dump( symlink($dirname, $linkname) );
52 var_dump( symlink($linkname, $linkname) );
80 Warning: symlink(): File exists in %s on line %d
86 Warning: symlink(): File exists in %s on line %d
H A Dsymlink_link_linkinfo_is_link_variation3.phpt2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - access/update file …
11 /* Prototype: bool symlink ( string $target, string $link );
40 var_dump( symlink($filename, $linkname) );
41 // storing size of symlink in a local variable
57 // taking lstat of symlink
59 // checking that size of symlink remains same
79 // taking lstat of symlink
81 // checking that size of symlink remains same
101 // taking lstat of symlink
103 // checking that size of symlink remains same
H A Dsymlink_link_linkinfo_is_link_basic2.phpt2 Test symlink(), linkinfo(), link() and is_link() functions: basic functionality - link to dirs
11 /* Prototype: bool symlink ( string $target, string $link );
26 echo "*** Testing symlink(), linkinfo(), link() and is_link() : basic functionality ***\n";
34 echo "\n*** Testing symlink(), linkinfo(), link() and is_link() on directory ***\n";
45 var_dump( symlink("$file_path/$dirname", $sym_linkname) ); // this works, expected true
73 *** Testing symlink(), linkinfo(), link() and is_link() : basic functionality ***
75 *** Testing symlink(), linkinfo(), link() and is_link() on directory ***
H A Dis_dir_variation2.phpt27 echo "-- With symlink --\n";
28 symlink($file_path."/is_dir_variation2", $file_path."/is_dir_variation2_symlink");
44 echo "-- With symlink --\n";
45 symlink($file_path."/is_dir_variation2.tmp", $file_path."/is_dir_variation2_symlink.tmp");
82 -- With symlink --
91 -- With symlink --
H A Dsymlink_link_linkinfo_is_link_variation1.phpt2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - link name stored in…
11 /* Prototype: bool symlink ( string $target, string $link );
36 echo "*** Testing symlink(), link(), linkinfo() and is_link() with linknames stored as members in a…
48 var_dump( symlink($filename, $obj->linkname) );
71 echo "\n*** Testing symlink(), link(), linkinfo() and is_link() with linknames stored as members of…
78 var_dump( symlink($filename, $link_arr[0]) );
113 *** Testing symlink(), link(), linkinfo() and is_link() with linknames stored as members in an obje…
125 *** Testing symlink(), link(), linkinfo() and is_link() with linknames stored as members of an arra…
H A Drename_variation7-win32.phpt6 if (!function_exists("symlink")) die("skip symlinks are not supported");
14 if (symlink(dirname(__FILE__)."/there_is_no_such_file", $tmp_link)) {
29 Warning: symlink(): Could not fetch file information(error 2) in %srename_variation7-win32.php on l…
H A Dfiletype_variation.phpt6 die('skip no link()/symlink() on Windows');
40 echo "-- Checking with links: symlink --\n";
41 symlink( $file2, $link2);
71 -- Checking with links: symlink --
H A Dsymlink_link_linkinfo_is_link_variation8.phpt2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - try link with same …
11 /* Prototype: bool symlink ( string $target, string $link );
59 var_dump( symlink($filename, $dirname."/") ); // this fails indicating file exists
61 var_dump( symlink($filename, $dirname."/".$linkname) ); // this works fine
80 Warning: symlink(): File exists in %s on line %d
H A Drename_variation7.phpt6 if (!function_exists("symlink")) die("skip symlinks are not supported");
14 symlink(dirname(__FILE__)."/there_is_no_such_file", $tmp_link);
H A D001.phpt28 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 Dsymlink_link_linkinfo_is_link_basic1.phpt2 Test symlink(), linkinfo(), link() and is_link() functions: basic functionality - link to files
11 /* Prototype: bool symlink ( string $target, string $link );
33 echo "*** Testing symlink(), linkinfo(), link() and is_link() : basic functionality ***\n";
59 var_dump( symlink($file, $sym_linkname) );
93 *** Testing symlink(), linkinfo(), link() and is_link() : basic functionality ***
H A Drealpath_basic4.phpt13 @symlink("$file_path/realpath_basic/home", "$file_path/realpath_basic/link1");
14 @symlink("$file_path/realpath_basic/link1", "$file_path/realpath_basic/link2");
H A Drename_variation6.phpt6 if (!function_exists("symlink")) die("skip symlinks are not supported");
16 symlink($tmp_file, $tmp_link);
H A Drename_variation6-win32.phpt6 if (!function_exists("symlink")) die("skip symlinks are not supported");
20 symlink($tmp_file, $tmp_link);

Completed in 31 milliseconds

1234