Lines Matching refs:linkname
2 Test readlink() and realpath() functions: usage variation - linkname/filename stored in object(Bug …
16 echo "\n*** Testing readlink() and realpath() with linkname stored inside a object ***\n";
21 // creating object with members as linkname
23 public $linkname;
25 $this->linkname = $link;
31 echo "\n-- Testing readlink() and realpath() with softlink, linkname stored inside an object --\n";
33 var_dump( symlink($filename, $obj1->linkname) );
34 var_dump( readlink($obj1->linkname) );
35 var_dump( realpath($obj1->linkname) );
36 var_dump( symlink($filename, $obj2->linkname) );
37 var_dump( readlink($obj2->linkname) );
38 var_dump( realpath($obj2->linkname) );
41 unlink($obj1->linkname);
42 unlink($obj2->linkname);
44 echo "\n-- Testing readlink() and realpath() with hardlink, linkname stored inside an object --\n";
46 var_dump( link($filename, $obj1->linkname) );
47 var_dump( readlink($obj1->linkname) ); // invalid because readlink doesn't work with hardlink
48 var_dump( realpath($obj1->linkname) );
49 var_dump( link($filename, $obj2->linkname) );
50 var_dump( readlink($obj2->linkname) ); // invalid because readlink doesn't work with hardlink
51 var_dump( realpath($obj2->linkname) );
54 unlink($obj1->linkname);
55 unlink($obj2->linkname);
71 *** Testing readlink() and realpath() with linkname stored inside a object ***
73 -- Testing readlink() and realpath() with softlink, linkname stored inside an object --
81 -- Testing readlink() and realpath() with hardlink, linkname stored inside an object --