1--TEST-- 2Test set_magic_quotes_runtime() function - basic test 3--INI-- 4magic_quotes_runtime = 0 5--FILE-- 6<?php 7/* Prototype: bool set_magic_quotes_runtime ( int $new_setting ) 8 * Description: Sets the current active configuration setting of magic_quotes_runtime 9*/ 10 11echo "Simple testcase for set_magic_quotes_runtime() function - basic test\n"; 12 13$g = get_magic_quotes_runtime(); 14echo "\n-- magic quotes runtime set in INI file: " . $g . "--\n"; 15 16echo "\n-- Set magic quotes runtime to 1: --\n"; 17var_dump(set_magic_quotes_runtime(1)); 18$g = get_magic_quotes_runtime(); 19echo "\n-- magic quotes runtime after set: " . $g . " --\n"; 20 21echo "\n-- Set magic quotes runtime to 0: --\n"; 22var_dump(set_magic_quotes_runtime(0)); 23$g = get_magic_quotes_runtime(); 24echo "\n-- magic quotes runtime after set: " . $g . " --\n"; 25 26echo "\n-- Set magic quotes runtime to 1: --\n"; 27var_dump(set_magic_quotes_runtime(1)); 28$g = get_magic_quotes_runtime(); 29echo "\n-- magic quotes runtime after set: " . $g . " --\n"; 30 31?> 32===DONE=== 33--EXPECTF-- 34Simple testcase for set_magic_quotes_runtime() function - basic test 35 36-- magic quotes runtime set in INI file: 0-- 37 38-- Set magic quotes runtime to 1: -- 39 40Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d 41bool(true) 42 43-- magic quotes runtime after set: 1 -- 44 45-- Set magic quotes runtime to 0: -- 46 47Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d 48bool(true) 49 50-- magic quotes runtime after set: 0 -- 51 52-- Set magic quotes runtime to 1: -- 53 54Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d 55bool(true) 56 57-- magic quotes runtime after set: 1 -- 58===DONE===