Annotation of embedaddon/php/ext/standard/tests/general_functions/get_cfg_var_variation8.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test function get_cfg_var() by calling deprecated option
        !             3: --CREDITS--
        !             4: Francesco Fullone ff@ideato.it
        !             5: #PHPTestFest Cesena Italia on 2009-06-20
        !             6: --INI--
        !             7: register_globals=1
        !             8: --SKIPIF--
        !             9: <?php if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or greater"); ?>
        !            10: --FILE--
        !            11: <?php
        !            12: echo "*** Test by calling method or function with deprecated option ***\n";
        !            13: var_dump(get_cfg_var( 'register_globals' ) );
        !            14: 
        !            15: ?>
        !            16: --EXPECTF--
        !            17: Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in %s on line 0
        !            18: *** Test by calling method or function with deprecated option ***
        !            19: string(1) "1"
        !            20: 

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