]> granicus.if.org Git - php/blob
f01e69b13d
[php] /
1 --TEST--
2 Test is_writable() and its alias is_writeable() function: error conditions
3 --FILE--
4 <?php
5 /* Prototype: bool is_writable ( string $filename );
6    Description: Tells whether the filename is writable.
7
8    is_writeable() is an alias of is_writable()
9 */
10
11 echo "\n*** Testing is_writable() on non-existent file ***\n";
12 var_dump( is_writable(__DIR__."/is_writable") );
13 var_dump( is_writeable(__DIR__."/is_writable") );
14
15 echo "Done\n";
16 ?>
17 --EXPECT--
18 *** Testing is_writable() on non-existent file ***
19 bool(false)
20 bool(false)
21 Done