DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /AppServ/www/ULIB/_tmp/rootutils/pecl/PEAR/tests/Config/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/ULIB/_tmp/rootutils/pecl/PEAR/tests/Config/test/bug10010.phpt
--TEST--
regression test for bug #10010
--FILE--
<?php
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';

$aTrans = array(
		'foo' => 'bar',
		'aMonths' => array(
			1 => 'January',
			2 => 'February',
			3 => 'March',
			4 => 'April',
			5 => 'May',
			6 => 'June',
			7 => 'July',
			8 => 'August',
			9 => 'September',
			10 => 'October',
			11 => 'November',
			12 => 'December',)
		);


$c = new Config();
$root = & $c->parseConfig($aTrans,
		'phparray',
		array('duplicateDirectives' => false));
$filename = './bug10010-output.php';
$result = $c->writeConfig($filename,
		'phparray',
		array('name' => 'words'));

include($filename);
print_r($words)

?>
--EXPECT--
Array
(
    [foo] => bar
    [aMonths] => Array
        (
            [1] => January
            [2] => February
            [3] => March
            [4] => April
            [5] => May
            [6] => June
            [7] => July
            [8] => August
            [9] => September
            [10] => October
            [11] => November
            [12] => December
        )

)

Anon7 - 2022
AnonSec Team