Lines Matching refs:unlink
2 Testing unlink() function : error conditions
21 echo "*** Testing unlink() : error conditions ***\n";
23 echo "\n-- Testing unlink() on invalid arguments --\n";
25 var_dump( unlink('') ); // $filename as empty string
28 var_dump( unlink(false) ); // $filename as boolean false
31 echo "\n-- Testing unlink() on non-existent file --\n";
32 var_dump( unlink(__DIR__."/non_existent_file.tmp") );
34 echo "\n-- Testing unlink() on directory --\n";
40 var_dump( unlink($dirname) ); // expected: false as unlink() does not work on dir
46 unlink(__DIR__."/unlink_error.tmp");
50 *** Testing unlink() : error conditions ***
52 -- Testing unlink() on invalid arguments --
54 Warning: unlink(): %s in %s on line %d
58 Warning: unlink(): %s in %s on line %d
62 -- Testing unlink() on non-existent file --
64 Warning: unlink(%s/non_existent_file.tmp): No such file or directory in %s on line %d
67 -- Testing unlink() on directory --
69 Warning: unlink(%s/unlink_error): %s in %s on line %d