--TEST-- Test is_writable() and its alias is_writeable() function: usage variations - diff. path notations --SKIPIF-- --FILE-- getMessage(), "\n"; } try { var_dump( is_writeable($file) ); } catch (Error $e) { echo $e->getMessage(), "\n"; } $counter++; clearstatcache(); } echo "Done\n"; ?> --CLEAN-- --EXPECTF-- *** Testing is_writable(): usage variations *** -- Iteration 1 -- bool(true) bool(true) -- Iteration 2 -- bool(%s) bool(%s) -- Iteration 3 -- bool(true) bool(true) -- Iteration 4 -- bool(true) bool(true) -- Iteration 5 -- bool(false) bool(false) -- Iteration 6 -- bool(false) bool(false) -- Iteration 7 -- bool(false) bool(false) -- Iteration 8 -- bool(false) bool(false) -- Iteration 9 -- bool(false) bool(false) -- Iteration 10 -- bool(true) bool(true) -- Iteration 11 -- bool(true) bool(true) Done