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