Lines Matching refs:lchown
2 Test lchown() function : error functionality
19 /* Prototype : bool lchown (string filename, mixed user)
25 echo "*** Testing lchown() : error functionality ***\n";
28 $filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'lchown.txt';
34 var_dump( lchown( $filename ) );
37 var_dump( lchown( $filename, $uid, 'foobar' ) );
40 var_dump( lchown( 'foobar_lchown.txt', $uid ) );
43 var_dump( lchown( new StdClass(), $uid ) );
44 var_dump( lchown( array(), $uid ) );
47 var_dump( lchown( $filename, -5 ) );
54 $filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'lchown.txt';
59 *** Testing lchown() : error functionality ***
61 Warning: lchown() expects exactly 2 parameters, 1 given in %s on line %d
64 Warning: lchown() expects exactly 2 parameters, 3 given in %s on line %d
67 Warning: lchown(): No such file or directory in %s on line %d
70 Warning: lchown() expects parameter 1 to be string, object given in %s on line %d
73 Warning: lchown() expects parameter 1 to be string, array given in %s on line %d
76 Warning: lchown(): Operation not permitted in %s on line %d