File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
standard /
tests /
general_functions /
ini_get_all.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:04 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
ini_get_all() tests
--INI--
pcre.backtrack_limit=1000000
pcre.recursion_limit=100000
--SKIPIF--
<?php if (!extension_loaded("reflection")) die("skip"); ?>
--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(2) {
["pcre.backtrack_limit"]=>
array(3) {
["global_value"]=>
string(7) "1000000"
["local_value"]=>
string(7) "1000000"
["access"]=>
int(7)
}
["pcre.recursion_limit"]=>
array(3) {
["global_value"]=>
string(6) "100000"
["local_value"]=>
string(6) "100000"
["access"]=>
int(7)
}
}
array(2) {
["pcre.backtrack_limit"]=>
string(7) "1000000"
["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
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>