version 1.1.1.1, 2012/02/21 23:48:04
|
version 1.1.1.2, 2012/05/29 12:34:44
|
Line 1
|
Line 1
|
--TEST--
| --TEST-- |
Test function get_cfg_var() by calling deprecated option
| Test function get_cfg_var() by calling deprecated option |
--CREDITS--
| --CREDITS-- |
Francesco Fullone ff@ideato.it
| Francesco Fullone ff@ideato.it |
#PHPTestFest Cesena Italia on 2009-06-20
| #PHPTestFest Cesena Italia on 2009-06-20 |
--INI--
| --INI-- |
register_globals=1
| magic_quotes_gpc=1 |
--SKIPIF--
| --SKIPIF-- |
<?php if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or greater"); ?>
| <?php if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or greater"); ?> |
--FILE--
| --FILE-- |
<?php
| <?php |
echo "*** Test by calling method or function with deprecated option ***\n";
| echo "*** Test by calling method or function with deprecated option ***\n"; |
var_dump(get_cfg_var( 'register_globals' ) );
| var_dump(get_cfg_var( 'magic_quotes_gpc' ) ); |
| |
?>
| ?> |
--EXPECTF--
| --EXPECTF-- |
Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in %s on line 0
| Fatal error: Directive 'magic_quotes_gpc' is no longer available in PHP in Unknown on line 0 |
*** Test by calling method or function with deprecated option ***
| |
string(1) "1"
| |
| |