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