1--TEST--
2Test posix_access() with safe_mode enabled.
3--CREDITS--
4Till Klampaeckel, till@php.net
5TestFest Berlin 2009
6--SKIPIF--
7<?php
8if (!extension_loaded('posix')) {
9    die('SKIP The posix extension is not loaded.');
10}
11if (posix_geteuid() == 0) {
12    die('SKIP Cannot run test as root.');
13}
14if (PHP_VERSION_ID < 503099) {
15    die('SKIP Safe mode is no longer available.');
16}
17--FILE--
18<?php
19var_dump(posix_access('/tmp', POSIX_W_OK));
20?>
21===DONE===
22--EXPECTF--
23Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in %s on line %d
24bool(false)
25===DONE===
26