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(NULL) ); // $filename as NULL
31 var_dump( unlink(false) ); // $filename as boolean false
34 echo "\n-- Testing unlink() on non-existent file --\n";
35 var_dump( unlink(__DIR__."/non_existent_file.tmp") );
37 echo "\n-- Testing unlink() on directory --\n";
43 var_dump( unlink($dirname) ); // expected: false as unlink() does not work on dir
49 unlink(__DIR__."/unlink_error.tmp");
53 *** Testing unlink() : error conditions ***
55 -- Testing unlink() on invalid arguments --
57 Warning: unlink(): %s in %s on line %d
61 Warning: unlink(): %s in %s on line %d
65 Warning: unlink(): %s in %s on line %d
69 -- Testing unlink() on non-existent file --
71 Warning: unlink(%s/non_existent_file.tmp): No such file or directory in %s on line %d
74 -- Testing unlink() on directory --
76 Warning: unlink(%s/unlink_error): %s in %s on line %d