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(NULL) ); // $filename as NULL
33 var_dump( unlink(false) ); // $filename as boolean false
37 echo "\n-- Testing unlink() on non-existent file --\n";
38 var_dump( unlink(__DIR__."/non_existent_file.tmp") );
40 echo "\n-- Testing unlink() on directory --\n";
46 var_dump( unlink($dirname) ); // expected: false as unlink() does not work on dir
52 unlink(__DIR__."/unlinkErr私はガラスを食べられます/unlink_error.tmp");
57 *** Testing unlink() : error conditions ***
59 -- Testing unlink() on invalid arguments --
61 Warning: unlink(): %s in %s on line %d
65 Warning: unlink(): %s in %s on line %d
69 Warning: unlink(): %s in %s on line %d
73 -- Testing unlink() on non-existent file --
75 Warning: unlink(%s/non_existent_file.tmp): No such file or directory in %s on line %d
78 -- Testing unlink() on directory --
80 Warning: unlink(%s/unlink_error): Is a directory in %s on line %d