Lines Matching refs:linkname
2 Test readlink() and realpath() functions: usage variation - linkname/filename stored in object(Bug …
23 echo "\n*** Testing readlink() and realpath() with linkname stored inside a object ***\n";
28 // creating object with members as linkname
30 public $linkname;
32 $this->linkname = $link;
38 echo "\n-- Testing readlink() and realpath() with softlink, linkname stored inside an object --\n";
40 var_dump( symlink($filename, $obj1->linkname) );
41 var_dump( readlink($obj1->linkname) );
42 var_dump( realpath($obj1->linkname) );
43 var_dump( symlink($filename, $obj2->linkname) );
44 var_dump( readlink($obj2->linkname) );
45 var_dump( realpath($obj2->linkname) );
48 unlink($obj1->linkname);
49 unlink($obj2->linkname);
51 echo "\n-- Testing readlink() and realpath() with hardlink, linkname stored inside an object --\n";
53 var_dump( link($filename, $obj1->linkname) );
54 var_dump( readlink($obj1->linkname) ); // invalid because readlink doesn't work with hardlink
55 var_dump( realpath($obj1->linkname) );
56 var_dump( link($filename, $obj2->linkname) );
57 var_dump( readlink($obj2->linkname) ); // invalid because readlink doesn't work with hardlink
58 var_dump( realpath($obj2->linkname) );
61 unlink($obj1->linkname);
62 unlink($obj2->linkname);
78 *** Testing readlink() and realpath() with linkname stored inside a object ***
80 -- Testing readlink() and realpath() with softlink, linkname stored inside an object --
88 -- Testing readlink() and realpath() with hardlink, linkname stored inside an object --