2 Test is_writable() and its alias is_writeable() function: usage variations - invalid file names
5 require __DIR__ . '/../skipif_root.inc';
11 /* Prototype: bool is_writable ( string $filename );
12 Description: Tells whether the filename is writable.
14 is_writeable() is an alias of is_writable()
17 /* test is_writable() & is_writeable() with invalid arguments */
19 echo "*** Testing is_writable(): usage variations ***\n";
21 echo "\n*** Testing is_writable() with invalid filenames ***\n";
32 /* loop through to test each element in the above array
34 foreach( $misc_files as $misc_file ) {
35 var_dump( is_writable($misc_file) );
36 var_dump( is_writeable($misc_file) );
41 *** Testing is_writable(): usage variations ***
43 *** Testing is_writable() with invalid filenames ***