mirror of
https://github.com/php/php-src.git
synced 2024-10-18 23:12:35 +00:00
21 lines
610 B
PHP
21 lines
610 B
PHP
--TEST--
|
|
Test function get_cfg_var() by calling deprecated option
|
|
--CREDITS--
|
|
Francesco Fullone ff@ideato.it
|
|
#PHPTestFest Cesena Italia on 2009-06-20
|
|
--INI--
|
|
register_globals=1
|
|
--SKIPIF--
|
|
<?php if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or greater"); ?>
|
|
--FILE--
|
|
<?php
|
|
echo "*** Test by calling method or function with deprecated option ***\n";
|
|
var_dump(get_cfg_var( 'register_globals' ) );
|
|
|
|
?>
|
|
--EXPECTF--
|
|
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in %s on line 0
|
|
*** Test by calling method or function with deprecated option ***
|
|
string(1) "1"
|
|
|