Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
regression test for bug #16590, named arrays with number as first key
3
--FILE--
4
<?php
5
//having the number key in the root structure did always work
6
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
7
$conf = array(
8
    '203' => 'mysql',
9
    'host' => 'localhost',
10
);
11
print_r($conf);
12
 
13
$c = new Config();
14
$arr_read = $c->parseConfig($conf, 'phparray');
15
//var_dump($arr_read);
16
$arr_read = $arr_read->toArray();
17
print_r($arr_read['root']);
18
?>
19
--EXPECT--
20
Array
21
(
22
    [203] => mysql
23
    [host] => localhost
24
)
25
Array
26
(
27
    [203] => mysql
28
    [host] => localhost
29
)