Lines Matching refs:unlink
2 Testing unlink() function : error conditions
23 echo "*** Testing unlink() : error conditions ***\n";
25 echo "\n-- Testing unlink() on invalid arguments --\n";
27 var_dump( unlink('') ); // $filename as empty string
30 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__."/unlinkErr私はガラスを食べられます/unlink_error.tmp");
54 *** Testing unlink() : error conditions ***
56 -- Testing unlink() on invalid arguments --
58 Warning: unlink(): %s in %s on line %d
62 Warning: unlink(): %s in %s on line %d
66 -- Testing unlink() on non-existent file --
68 Warning: unlink(%s/non_existent_file.tmp): No such file or directory in %s on line %d
71 -- Testing unlink() on directory --
73 Warning: unlink(%s/unlink_error): Is a directory in %s on line %d