Return to get_cfg_var_variation8.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / general_functions |
1.1.1.2 ! 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: magic_quotes_gpc=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( 'magic_quotes_gpc' ) ); ! 14: ! 15: ?> ! 16: --EXPECTF-- ! 17: Fatal error: Directive 'magic_quotes_gpc' is no longer available in PHP in Unknown on line 0