1--TEST--
2Test set_magic_quotes_runtime() function - error conditions - pass function incorrect arguments
3--FILE--
4<?php
5/* Prototype: bool set_magic_quotes_runtime  ( int $new_setting  )
6 * Description: Sets the current active configuration setting of magic_quotes_runtime
7*/
8
9echo "Simple testcase for set_magic_quotes_runtime()  - error test\n";
10
11//Note: No error msgs on invalid input; just a return value of FALSE
12
13echo "\n-- Testing set_magic_quotes_runtime() function with less than expected no. of arguments --\n";
14var_dump(set_magic_quotes_runtime());
15
16echo "\n-- Testing set_magic_quotes_runtime() function with more than expected no. of arguments --\n";
17var_dump(set_magic_quotes_runtime(1, true));
18
19?>
20===DONE===
21--EXPECTF--
22Simple testcase for set_magic_quotes_runtime()  - error test
23
24-- Testing set_magic_quotes_runtime() function with less than expected no. of arguments --
25
26Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d
27
28Warning: set_magic_quotes_runtime() expects exactly 1 parameter, 0 given in %s on line %d
29NULL
30
31-- Testing set_magic_quotes_runtime() function with more than expected no. of arguments --
32
33Deprecated: Function set_magic_quotes_runtime() is deprecated in %s on line %d
34
35Warning: set_magic_quotes_runtime() expects exactly 1 parameter, 2 given in %s on line %d
36NULL
37===DONE===
38