File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
standard /
tests /
general_functions /
bug52138.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--
Bug #52138 (Constants are parsed into the ini file for section names)
--FILE--
<?php
define('MYCONST', 1);
define('A', 'B');
$ini_file = dirname(__FILE__)."/bug52138.data";
$ret = parse_ini_file($ini_file, true);
var_dump($ret);
?>
--EXPECTF--
array(4) {
["MYCONST"]=>
array(1) {
["MYCONST"]=>
string(1) "1"
}
["M_PI"]=>
array(1) {
["FOO"]=>
string(%d) "3.%d test"
}
["foo::bar"]=>
array(2) {
["A"]=>
string(1) "1"
["B"]=>
string(3) "BAB"
}
["MYCONST M_PI"]=>
array(0) {
}
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>