Annotation of embedaddon/php/ext/standard/tests/general_functions/bug52138.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #52138 (Constants are parsed into the ini file for section names)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: define('MYCONST', 1);
                      7: define('A', 'B');
                      8: 
                      9: $ini_file = dirname(__FILE__)."/bug52138.data";
                     10: 
                     11: $ret = parse_ini_file($ini_file, true);
                     12: var_dump($ret);
                     13: 
                     14: ?>
                     15: --EXPECTF--
                     16: array(4) {
                     17:   ["MYCONST"]=>
                     18:   array(1) {
                     19:     ["MYCONST"]=>
                     20:     string(1) "1"
                     21:   }
                     22:   ["M_PI"]=>
                     23:   array(1) {
                     24:     ["FOO"]=>
                     25:     string(%d) "3.%d test"
                     26:   }
                     27:   ["foo::bar"]=>
                     28:   array(2) {
                     29:     ["A"]=>
                     30:     string(1) "1"
                     31:     ["B"]=>
                     32:     string(3) "BAB"
                     33:   }
                     34:   ["MYCONST M_PI"]=>
                     35:   array(0) {
                     36:   }
                     37: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>