1--TEST--
2ini_get_all() tests
3--INI--
4pcre.backtrack_limit=1000000
5pcre.recursion_limit=100000
6--SKIPIF--
7<?php if (!extension_loaded("reflection")) die("skip"); ?>
8--FILE--
9<?php
10
11var_dump(gettype(ini_get_all()));
12var_dump(ini_get_all(""));
13var_dump(ini_get_all("nosuchextension"));
14var_dump(ini_get_all("reflection"));
15var_dump(ini_get_all("pcre"));
16var_dump(ini_get_all("pcre", false));
17var_dump(ini_get_all("reflection", false));
18
19var_dump(ini_get_all("", ""));
20
21echo "Done\n";
22?>
23--EXPECTF--
24string(5) "array"
25
26Warning: ini_get_all(): Unable to find extension '' in %s on line %d
27bool(false)
28
29Warning: ini_get_all(): Unable to find extension 'nosuchextension' in %s on line %d
30bool(false)
31array(0) {
32}
33array(2) {
34  ["pcre.backtrack_limit"]=>
35  array(3) {
36    ["global_value"]=>
37    string(7) "1000000"
38    ["local_value"]=>
39    string(7) "1000000"
40    ["access"]=>
41    int(7)
42  }
43  ["pcre.recursion_limit"]=>
44  array(3) {
45    ["global_value"]=>
46    string(6) "100000"
47    ["local_value"]=>
48    string(6) "100000"
49    ["access"]=>
50    int(7)
51  }
52}
53array(2) {
54  ["pcre.backtrack_limit"]=>
55  string(7) "1000000"
56  ["pcre.recursion_limit"]=>
57  string(6) "100000"
58}
59array(0) {
60}
61
62Warning: ini_get_all(): Unable to find extension '' in %sini_get_all.php on line %d
63bool(false)
64Done
65