--TEST--
Test posix_access() with safe_mode enabled.
--CREDITS--
Till Klampaeckel, till@php.net
TestFest Berlin 2009
--SKIPIF--
<?php
if (!extension_loaded('posix')) {
    die('SKIP The posix extension is not loaded.');
}
if (posix_geteuid() == 0) {
    die('SKIP Cannot run test as root.');
}
--INI--
safe_mode = 1
--FILE--
<?php
var_dump(posix_access('/tmp', POSIX_W_OK));
?>
===DONE===
--EXPECTF--
bool(false)
===DONE===
