Lines Matching refs:chmod
2 Test chmod() function : error conditions
5 /* Prototype : bool chmod(string filename, int mode)
11 echo "*** Testing chmod() : error conditions ***\n";
14 //Test chmod with one more than the expected number of arguments
15 echo "\n-- Testing chmod() function with more than expected no. of arguments --\n";
19 var_dump( chmod($filename, $mode, $extra_arg) );
21 // Testing chmod with one less than the expected number of arguments
22 echo "\n-- Testing chmod() function with less than expected no. of arguments --\n";
24 var_dump( chmod($filename) );
26 // testing chmod with a non-existing file
28 var_dump(chmod($filename, 0777));
33 *** Testing chmod() : error conditions ***
35 -- Testing chmod() function with more than expected no. of arguments --
37 Warning: chmod() expects exactly 2 parameters, 3 given in %s on line %d
40 -- Testing chmod() function with less than expected no. of arguments --
42 Warning: chmod() expects exactly 2 parameters, 1 given in %s on line %d
45 Warning: chmod(): No such file or directory in %s on line %d