mirror of
https://github.com/php/php-src.git
synced 2024-10-16 05:52:36 +00:00
20 lines
622 B
Plaintext
20 lines
622 B
Plaintext
|
--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 no longer supported in PHP 6 and greater in Unknown on line 0
|
||
|
*** Test by calling method or function with deprecated option ***
|
||
|
unicode(1) "1"
|