Lines Matching refs:linkname
2 Test readlink() and realpath() functions: usage variation - linkname/filename stored in object(Bug …
19 echo "\n*** Testing readlink() and realpath() with linkname stored inside a object ***\n";
24 // creating object with members as linkname
26 public $linkname;
28 $this->linkname = $link;
34 echo "\n-- Testing readlink() and realpath() with softlink, linkname stored inside an object --\n";
36 var_dump( symlink($filename, $obj1->linkname) );
37 var_dump( readlink($obj1->linkname) );
38 var_dump( realpath($obj1->linkname) );
39 var_dump( symlink($filename, $obj2->linkname) );
40 var_dump( readlink($obj2->linkname) );
41 var_dump( realpath($obj2->linkname) );
44 unlink($obj1->linkname);
45 unlink($obj2->linkname);
47 echo "\n-- Testing readlink() and realpath() with hardlink, linkname stored inside an object --\n";
49 var_dump( link($filename, $obj1->linkname) );
50 var_dump( readlink($obj1->linkname) ); // invalid because readlink doesn't work with hardlink
51 var_dump( realpath($obj1->linkname) );
52 var_dump( link($filename, $obj2->linkname) );
53 var_dump( readlink($obj2->linkname) ); // invalid because readlink doesn't work with hardlink
54 var_dump( realpath($obj2->linkname) );
57 unlink($obj1->linkname);
58 unlink($obj2->linkname);
74 *** Testing readlink() and realpath() with linkname stored inside a object ***
76 -- Testing readlink() and realpath() with softlink, linkname stored inside an object --
84 -- Testing readlink() and realpath() with hardlink, linkname stored inside an object --