Annotation of embedaddon/php/ext/standard/tests/general_functions/set_magic_quotes_runtime_basic.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: Test set_magic_quotes_runtime() function - basic test
3: --INI--
4: magic_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:
11: echo "Simple testcase for set_magic_quotes_runtime() function - basic test\n";
12:
13: $g = get_magic_quotes_runtime();
14: echo "\n-- magic quotes runtime set in INI file: " . $g . "--\n";
15:
16: echo "\n-- Set magic quotes runtime to 0: --\n";
17: var_dump(set_magic_quotes_runtime(0));
18: $g = get_magic_quotes_runtime();
19: echo "\n-- magic quotes runtime after set: " . $g . " --\n";
20:
21: echo "\n-- Set magic quotes runtime to 1: --\n";
22: var_dump(set_magic_quotes_runtime(1));
23: $g = get_magic_quotes_runtime();
24: echo "\n-- magic quotes runtime after set: " . $g . " --\n";
25:
26: ?>
27: ===DONE===
28: --EXPECTF--
29: Simple testcase for set_magic_quotes_runtime() function - basic test
30:
1.1.1.2 ! misho 31: -- magic quotes runtime set in INI file: --
1.1 misho 32:
33: -- Set magic quotes runtime to 0: --
34:
35: Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d
1.1.1.2 ! misho 36: bool(false)
1.1 misho 37:
1.1.1.2 ! misho 38: -- magic quotes runtime after set: --
1.1 misho 39:
40: -- Set magic quotes runtime to 1: --
41:
42: Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d
43:
1.1.1.2 ! misho 44: Fatal error: set_magic_quotes_runtime(): magic_quotes_runtime is not supported anymore in Unknown on line 0
! 45:
! 46:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>