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(3) { 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.jit"]=> 44 array(3) { 45 ["global_value"]=> 46 string(1) "1" 47 ["local_value"]=> 48 string(1) "1" 49 ["access"]=> 50 int(7) 51 } 52 ["pcre.recursion_limit"]=> 53 array(3) { 54 ["global_value"]=> 55 string(6) "100000" 56 ["local_value"]=> 57 string(6) "100000" 58 ["access"]=> 59 int(7) 60 } 61} 62array(3) { 63 ["pcre.backtrack_limit"]=> 64 string(7) "1000000" 65 ["pcre.jit"]=> 66 string(1) "1" 67 ["pcre.recursion_limit"]=> 68 string(6) "100000" 69} 70array(0) { 71} 72 73Warning: ini_get_all(): Unable to find extension '' in %sini_get_all.php on line %d 74bool(false) 75Done 76