Lines Matching refs:chmod
2 Test fileperms(), chmod() functions: error conditions
26 Prototype: bool chmod ( string $filename, int $mode )
31 echo "*** Testing error conditions for fileperms(), chmod() ***\n";
34 var_dump( chmod("/etc/passwd", 0777) );
39 var_dump( chmod("/etc", 0777) );
45 var_dump( chmod("/no/such/file/dir", 0777) );
52 var_dump( chmod(dirname(__FILE__)."/006_error.tmp") );
53 var_dump( chmod("nofile") );
54 var_dump( chmod() );
58 var_dump( chmod(dirname(__FILE__)."/006_error.tmp", 0755, TRUE) );
69 *** Testing error conditions for fileperms(), chmod() ***
71 Warning: chmod(): %s in %s on line %d
75 Warning: chmod(): %s in %s on line %d
79 Warning: chmod(): No such file or directory in %s on line %d
86 Warning: chmod() expects exactly 2 parameters, 1 given in %s on line %d
89 Warning: chmod() expects exactly 2 parameters, 1 given in %s on line %d
92 Warning: chmod() expects exactly 2 parameters, 0 given in %s on line %d
98 Warning: chmod() expects exactly 2 parameters, 3 given in %s on line %d