Annotation of embedaddon/php/ext/posix/tests/posix_access_safemode.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>