Lines Matching refs:readlink
2 Test readlink() and realpath() functions: error conditions
11 /* Prototype: string readlink ( string $path );
18 echo "*** Testing readlink(): error conditions ***\n";
19 var_dump( readlink() ); // args < expected
20 var_dump( readlink(__FILE__, 2) ); // args > expected
22 echo "\n*** Testing readlink() on a non-existent link ***\n";
23 var_dump( readlink(__DIR__."/readlink_error.tmp") );
25 echo "\n*** Testing readlink() on existing file ***\n";
26 var_dump( readlink(__FILE__) );
28 echo "\n*** Testing readlink() on existing directory ***\n";
29 var_dump( readlink(__DIR__) );
41 *** Testing readlink(): error conditions ***
43 Warning: readlink() expects exactly 1 parameter, 0 given in %s on line %d
46 Warning: readlink() expects exactly 1 parameter, 2 given in %s on line %d
49 *** Testing readlink() on a non-existent link ***
51 Warning: readlink(): readlink failed to read the symbolic link (%s, error %d) in %s on line %d
54 *** Testing readlink() on existing file ***
57 *** Testing readlink() on existing directory ***