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}
14--INI--
15safe_mode = 1
16--FILE--
17<?php
18var_dump(posix_access('/tmp', POSIX_W_OK));
19?>
20===DONE===
21--EXPECTF--
22Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in %s on line %d
23bool(false)
24===DONE===
25