2007-06-05 09:20:17 +00:00
|
|
|
--TEST--
|
|
|
|
Test is_writable() and its alias is_writeable() function: error conditions
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
/* Prototype: bool is_writable ( string $filename );
|
|
|
|
Description: Tells whether the filename is writable.
|
|
|
|
|
|
|
|
is_writeable() is an alias of is_writable()
|
|
|
|
*/
|
|
|
|
|
|
|
|
echo "\n*** Testing is_writable() on non-existent file ***\n";
|
2019-03-15 21:55:30 +00:00
|
|
|
var_dump( is_writable(__DIR__."/is_writable") );
|
|
|
|
var_dump( is_writeable(__DIR__."/is_writable") );
|
2007-06-05 09:20:17 +00:00
|
|
|
|
|
|
|
echo "Done\n";
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
|
|
|
*** Testing is_writable() on non-existent file ***
|
|
|
|
bool(false)
|
|
|
|
bool(false)
|
|
|
|
Done
|