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 0:  --\n";
17var_dump(set_magic_quotes_runtime(0));
18$g = get_magic_quotes_runtime();
19echo "\n-- magic quotes runtime after set: " . $g . " --\n";
20
21echo "\n-- Set magic quotes runtime to 1:  --\n";
22var_dump(set_magic_quotes_runtime(1));
23$g = get_magic_quotes_runtime();
24echo "\n-- magic quotes runtime after set: " . $g . " --\n";
25
26?>
27===DONE===
28--EXPECTF--
29Simple testcase for set_magic_quotes_runtime() function - basic test
30
31-- magic quotes runtime set in INI file: --
32
33-- Set magic quotes runtime to 0:  --
34
35Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d
36bool(false)
37
38-- magic quotes runtime after set:  --
39
40-- Set magic quotes runtime to 1:  --
41
42Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d
43
44Fatal error: set_magic_quotes_runtime(): magic_quotes_runtime is not supported anymore in Unknown on line 0
45
46
47