Lines Matching refs:link

2 Test symlink(), linkinfo(), link() and is_link() functions: basic functionality - link to dirs
11 /* Prototype: bool symlink ( string $target, string $link );
12 Description: creates a symbolic link to the existing target with the specified name link
15 Description: Tells whether the given file is a symbolic link.
17 Prototype: bool link ( string $target, string $link );
18 Description: Create a hard link
21 Description: Gets information about a link
26 echo "*** Testing symlink(), linkinfo(), link() and is_link() : basic functionality ***\n";
28 /* Creating soft/hard link to the temporary dir $dirname and checking
29 linkinfo() and is_link() on the link created to $dirname */
34 echo "\n*** Testing symlink(), linkinfo(), link() and is_link() on directory ***\n";
36 // name of the soft link created to $dirname
39 // name of the hard link created to $dirname
42 // testing on soft link
44 // creating soft link to $dirname
46 // gets information about soft link created to directory; expected: true
48 // checks if link created is soft link; expected: true
53 // testing on hard link
55 // creating hard link to $dirname; expected: false
56 var_dump( link("$file_path/$dirname", $linkname) ); // this doesn't work, expected false
57 var_dump( linkinfo($linkname) ); // link doesn't exists as not created, expected false
58 var_dump( is_link($linkname) ); // link doesn't exists as not created, expected false
73 *** Testing symlink(), linkinfo(), link() and is_link() : basic functionality ***
75 *** Testing symlink(), linkinfo(), link() and is_link() on directory ***
84 Warning: link(): %s in %s on line %d