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
32 echo "\n-- Testing unlink() on non-existent file --\n";
33 var_dump( unlink(__DIR__."/non_existent_file.tmp") );
35 echo "\n-- Testing unlink() on directory --\n";
41 var_dump( unlink($dirname) ); // expected: false as unlink() does not work on dir
47 unlink(__DIR__."/unlink_error.tmp");
51 *** Testing unlink() : error conditions ***
53 -- Testing unlink() on invalid arguments --
55 Warning: unlink(): %s in %s on line %d
59 Warning: unlink(): %s in %s on line %d
63 -- Testing unlink() on non-existent file --
65 Warning: unlink(%s/non_existent_file.tmp): No such file or directory in %s on line %d
68 -- Testing unlink() on directory --
70 Warning: unlink(%s/unlink_error): Is a directory in %s on line %d