--TEST--
PEAR_Common::infoFromString test
--SKIPIF--
--FILE--
getMessage() . "\n";
}
echo "Test invalid XML\n";
$common->infoFromString('\\goober');
echo "Test valid XML, not a package.xml\n";
$common->infoFromString('' .
"\n");
echo "Test valid package.xml, invalid version number\n";
$common->infoFromString('' .
'');
echo "Test empty package.xml\n";
$ret = $common->infoFromString('' .
'');
var_dump($ret);
echo "Test 1\n";
$ret = $common->infoFromString('' .
'test');
var_dump($ret);
echo "Test 2\n";
$ret = $common->infoFromString('' .
'testPEAR test' .
'');
var_dump($ret);
echo "Test 3\n";
$ret = $common->infoFromString('' .
'testPEAR test' .
'The test');
var_dump($ret);
echo "Test 4\n";
$ret = $common->infoFromString('' .
'testPEAR test' .
'The testPHP License');
var_dump($ret);
echo "Test 5\n";
$ret = $common->infoFromString('' .
'testPEAR test' .
'The testPHP License
test
lead
test tester
test@php.net
');
var_dump($ret);
echo "Test 6\n";
$ret = $common->infoFromString('' .
'testPEAR test' .
'The testPHP License
test
lead
test tester
test@php.net
1.3b4
');
var_dump($ret);
echo "Test 7\n";
$ret = $common->infoFromString('' .
'testPEAR test' .
'The testPHP License
test
lead
test tester
test@php.net
1.3b4
2003-11-17
beta
test
');
var_dump($ret);
echo "Test 8\n";
$ret = $common->infoFromString('' .
'testPEAR test' .
'The testPHP License
test
lead
test tester
test@php.net
1.3b4
2003-11-17
beta
test
');
var_dump($ret);
echo "Test 9\n";
$ret = $common->infoFromString('' .
'testPEAR test' .
'The testPHP License
test
lead
test tester
test@php.net
1.3b4
2003-11-17
beta
test
xmlrpc
');
var_dump($ret);
echo "Test 10\n";
$ret = $common->infoFromString('' .
'testPEAR test' .
'The testPHP License
test
lead
test tester
test@php.net
1.3b4
2003-11-17
beta
test
xmlrpc
');
var_dump($ret);
echo "Test 11\n";
$ret = $common->infoFromString('' .
'testPEAR test' .
'The testPHP License
test
lead
test tester
test@php.net
1.3b4
2003-11-17
beta
test
xmlrpc
');
var_dump($ret);
echo "Test 12\n";
$ret = $common->infoFromString('' .
'testPEAR test' .
'The testPHP License
test
lead
test tester
test@php.net
1.3b4
2003-11-17
beta
test
xmlrpc
0.1
2003-07-21
PHP License
alpha
First release of test
0.2
2003-07-21
PHP License
alpha
Generation of package.xml from scratch is now supported. In addition,
generation of <provides> is supported and so is addition of
maintainers and configure options
- Fixed a bug in <release> generation
- Added _addProvides() to generate a <provides> section
');
var_dump($ret);
?>
--EXPECT--
Test invalid XML
Caught error: XML error: not well-formed (invalid token) at line 1
Test valid XML, not a package.xml
Caught error: Invalid Package File, no tag
Test valid package.xml, invalid version number
Caught error: No handlers for package.xml version 10000000
Test empty package.xml
array(2) {
["provides"]=>
array(0) {
}
["filelist"]=>
&array(0) {
}
}
Test 1
array(3) {
["provides"]=>
array(0) {
}
["filelist"]=>
&array(0) {
}
["package"]=>
string(4) "test"
}
Test 2
array(4) {
["provides"]=>
array(0) {
}
["filelist"]=>
&array(0) {
}
["package"]=>
string(4) "test"
["summary"]=>
string(9) "PEAR test"
}
Test 3
array(5) {
["provides"]=>
array(0) {
}
["filelist"]=>
&array(0) {
}
["package"]=>
string(4) "test"
["summary"]=>
string(9) "PEAR test"
["description"]=>
string(8) "The test"
}
Test 4
array(6) {
["provides"]=>
array(0) {
}
["filelist"]=>
&array(0) {
}
["package"]=>
string(4) "test"
["summary"]=>
string(9) "PEAR test"
["description"]=>
string(8) "The test"
["release_license"]=>
string(11) "PHP License"
}
Test 5
array(7) {
["provides"]=>
array(0) {
}
["filelist"]=>
&array(0) {
}
["package"]=>
string(4) "test"
["summary"]=>
string(9) "PEAR test"
["description"]=>
string(8) "The test"
["release_license"]=>
string(11) "PHP License"
["maintainers"]=>
array(1) {
[0]=>
&array(4) {
["handle"]=>
string(4) "test"
["role"]=>
string(4) "lead"
["name"]=>
string(11) "test tester"
["email"]=>
string(12) "test@php.net"
}
}
}
Test 6
array(8) {
["provides"]=>
array(0) {
}
["filelist"]=>
&array(0) {
}
["package"]=>
string(4) "test"
["summary"]=>
string(9) "PEAR test"
["description"]=>
string(8) "The test"
["release_license"]=>
string(11) "PHP License"
["maintainers"]=>
array(1) {
[0]=>
&array(4) {
["handle"]=>
string(4) "test"
["role"]=>
string(4) "lead"
["name"]=>
string(11) "test tester"
["email"]=>
string(12) "test@php.net"
}
}
["version"]=>
string(5) "1.3b4"
}
Test 7
array(11) {
["provides"]=>
array(0) {
}
["filelist"]=>
&array(0) {
}
["package"]=>
string(4) "test"
["summary"]=>
string(9) "PEAR test"
["description"]=>
string(8) "The test"
["release_license"]=>
string(11) "PHP License"
["maintainers"]=>
array(1) {
[0]=>
&array(4) {
["handle"]=>
string(4) "test"
["role"]=>
string(4) "lead"
["name"]=>
string(11) "test tester"
["email"]=>
string(12) "test@php.net"
}
}
["version"]=>
string(5) "1.3b4"
["release_date"]=>
string(10) "2003-11-17"
["release_state"]=>
string(4) "beta"
["release_notes"]=>
string(4) "test"
}
Test 8
array(11) {
["provides"]=>
array(1) {
["class;furngy"]=>
array(3) {
["type"]=>
string(5) "class"
["name"]=>
string(6) "furngy"
["explicit"]=>
bool(true)
}
}
["filelist"]=>
&array(0) {
}
["package"]=>
string(4) "test"
["summary"]=>
string(9) "PEAR test"
["description"]=>
string(8) "The test"
["release_license"]=>
string(11) "PHP License"
["maintainers"]=>
array(1) {
[0]=>
&array(4) {
["handle"]=>
string(4) "test"
["role"]=>
string(4) "lead"
["name"]=>
string(11) "test tester"
["email"]=>
string(12) "test@php.net"
}
}
["version"]=>
string(5) "1.3b4"
["release_date"]=>
string(10) "2003-11-17"
["release_state"]=>
string(4) "beta"
["release_notes"]=>
string(4) "test"
}
Test 9
array(12) {
["provides"]=>
array(1) {
["class;furngy"]=>
array(3) {
["type"]=>
string(5) "class"
["name"]=>
string(6) "furngy"
["explicit"]=>
bool(true)
}
}
["filelist"]=>
&array(0) {
}
["package"]=>
string(4) "test"
["summary"]=>
string(9) "PEAR test"
["description"]=>
string(8) "The test"
["release_license"]=>
string(11) "PHP License"
["maintainers"]=>
array(1) {
[0]=>
&array(4) {
["handle"]=>
string(4) "test"
["role"]=>
string(4) "lead"
["name"]=>
string(11) "test tester"
["email"]=>
string(12) "test@php.net"
}
}
["version"]=>
string(5) "1.3b4"
["release_date"]=>
string(10) "2003-11-17"
["release_state"]=>
string(4) "beta"
["release_notes"]=>
string(4) "test"
["release_deps"]=>
array(1) {
[1]=>
array(4) {
["type"]=>
string(3) "ext"
["rel"]=>
string(3) "has"
["optional"]=>
string(3) "yes"
["name"]=>
string(6) "xmlrpc"
}
}
}
Test 10
array(12) {
["provides"]=>
array(1) {
["class;furngy"]=>
array(3) {
["type"]=>
string(5) "class"
["name"]=>
string(6) "furngy"
["explicit"]=>
bool(true)
}
}
["filelist"]=>
&array(28) {
["package.dtd"]=>
array(1) {
["role"]=>
string(4) "data"
}
["template.spec"]=>
array(1) {
["role"]=>
string(4) "data"
}
["PEAR.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["System.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Autoloader.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Auth.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Build.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Common.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Config.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Install.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Package.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Registry.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Remote.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Mirror.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Common.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Config.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Dependency.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Frontend\CLI.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Builder.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Installer.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Packager.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Registry.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Remote.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["OS\Guess.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["scripts\pear.sh"]=>
array(4) {
["role"]=>
string(6) "script"
["install-as"]=>
string(4) "pear"
["baseinstalldir"]=>
string(1) "/"
["replacements"]=>
array(4) {
[0]=>
array(3) {
["from"]=>
string(9) "@php_bin@"
["to"]=>
string(7) "php_bin"
["type"]=>
string(11) "pear-config"
}
[1]=>
array(3) {
["from"]=>
string(9) "@php_dir@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
[2]=>
array(3) {
["from"]=>
string(14) "@pear_version@"
["to"]=>
string(7) "version"
["type"]=>
string(12) "package-info"
}
[3]=>
array(3) {
["from"]=>
string(14) "@include_path@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
}
}
["scripts\pear.bat"]=>
array(5) {
["role"]=>
string(6) "script"
["platform"]=>
string(7) "windows"
["install-as"]=>
string(8) "pear.bat"
["baseinstalldir"]=>
string(1) "/"
["replacements"]=>
array(3) {
[0]=>
array(3) {
["from"]=>
string(9) "@bin_dir@"
["to"]=>
string(7) "bin_dir"
["type"]=>
string(11) "pear-config"
}
[1]=>
array(3) {
["from"]=>
string(9) "@php_bin@"
["to"]=>
string(7) "php_bin"
["type"]=>
string(11) "pear-config"
}
[2]=>
array(3) {
["from"]=>
string(14) "@include_path@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
}
}
["scripts\pearcmd.php"]=>
array(4) {
["role"]=>
string(3) "php"
["install-as"]=>
string(11) "pearcmd.php"
["baseinstalldir"]=>
string(1) "/"
["replacements"]=>
array(4) {
[0]=>
array(3) {
["from"]=>
string(9) "@php_bin@"
["to"]=>
string(7) "php_bin"
["type"]=>
string(11) "pear-config"
}
[1]=>
array(3) {
["from"]=>
string(9) "@php_dir@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
[2]=>
array(3) {
["from"]=>
string(14) "@pear_version@"
["to"]=>
string(7) "version"
["type"]=>
string(12) "package-info"
}
[3]=>
array(3) {
["from"]=>
string(14) "@include_path@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
}
}
}
["package"]=>
string(4) "test"
["summary"]=>
string(9) "PEAR test"
["description"]=>
string(8) "The test"
["release_license"]=>
string(11) "PHP License"
["maintainers"]=>
array(1) {
[0]=>
&array(4) {
["handle"]=>
string(4) "test"
["role"]=>
string(4) "lead"
["name"]=>
string(11) "test tester"
["email"]=>
string(12) "test@php.net"
}
}
["version"]=>
string(5) "1.3b4"
["release_date"]=>
string(10) "2003-11-17"
["release_state"]=>
string(4) "beta"
["release_notes"]=>
string(4) "test"
["release_deps"]=>
array(1) {
[1]=>
array(4) {
["type"]=>
string(3) "ext"
["rel"]=>
string(3) "has"
["optional"]=>
string(3) "yes"
["name"]=>
string(6) "xmlrpc"
}
}
}
Test 11
array(13) {
["provides"]=>
array(1) {
["class;furngy"]=>
array(3) {
["type"]=>
string(5) "class"
["name"]=>
string(6) "furngy"
["explicit"]=>
bool(true)
}
}
["filelist"]=>
&array(28) {
["package.dtd"]=>
array(1) {
["role"]=>
string(4) "data"
}
["template.spec"]=>
array(1) {
["role"]=>
string(4) "data"
}
["PEAR.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["System.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Autoloader.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Auth.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Build.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Common.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Config.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Install.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Package.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Registry.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Remote.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Mirror.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Common.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Config.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Dependency.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Frontend\CLI.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Builder.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Installer.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Packager.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Registry.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Remote.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["OS\Guess.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["scripts\pear.sh"]=>
array(4) {
["role"]=>
string(6) "script"
["install-as"]=>
string(4) "pear"
["baseinstalldir"]=>
string(1) "/"
["replacements"]=>
array(4) {
[0]=>
array(3) {
["from"]=>
string(9) "@php_bin@"
["to"]=>
string(7) "php_bin"
["type"]=>
string(11) "pear-config"
}
[1]=>
array(3) {
["from"]=>
string(9) "@php_dir@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
[2]=>
array(3) {
["from"]=>
string(14) "@pear_version@"
["to"]=>
string(7) "version"
["type"]=>
string(12) "package-info"
}
[3]=>
array(3) {
["from"]=>
string(14) "@include_path@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
}
}
["scripts\pear.bat"]=>
array(5) {
["role"]=>
string(6) "script"
["platform"]=>
string(7) "windows"
["install-as"]=>
string(8) "pear.bat"
["baseinstalldir"]=>
string(1) "/"
["replacements"]=>
array(3) {
[0]=>
array(3) {
["from"]=>
string(9) "@bin_dir@"
["to"]=>
string(7) "bin_dir"
["type"]=>
string(11) "pear-config"
}
[1]=>
array(3) {
["from"]=>
string(9) "@php_bin@"
["to"]=>
string(7) "php_bin"
["type"]=>
string(11) "pear-config"
}
[2]=>
array(3) {
["from"]=>
string(14) "@include_path@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
}
}
["scripts\pearcmd.php"]=>
array(4) {
["role"]=>
string(3) "php"
["install-as"]=>
string(11) "pearcmd.php"
["baseinstalldir"]=>
string(1) "/"
["replacements"]=>
array(4) {
[0]=>
array(3) {
["from"]=>
string(9) "@php_bin@"
["to"]=>
string(7) "php_bin"
["type"]=>
string(11) "pear-config"
}
[1]=>
array(3) {
["from"]=>
string(9) "@php_dir@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
[2]=>
array(3) {
["from"]=>
string(14) "@pear_version@"
["to"]=>
string(7) "version"
["type"]=>
string(12) "package-info"
}
[3]=>
array(3) {
["from"]=>
string(14) "@include_path@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
}
}
}
["package"]=>
string(4) "test"
["summary"]=>
string(9) "PEAR test"
["description"]=>
string(8) "The test"
["release_license"]=>
string(11) "PHP License"
["maintainers"]=>
array(1) {
[0]=>
&array(4) {
["handle"]=>
string(4) "test"
["role"]=>
string(4) "lead"
["name"]=>
string(11) "test tester"
["email"]=>
string(12) "test@php.net"
}
}
["version"]=>
string(5) "1.3b4"
["release_date"]=>
string(10) "2003-11-17"
["release_state"]=>
string(4) "beta"
["release_notes"]=>
string(4) "test"
["release_deps"]=>
array(1) {
[1]=>
array(4) {
["type"]=>
string(3) "ext"
["rel"]=>
string(3) "has"
["optional"]=>
string(3) "yes"
["name"]=>
string(6) "xmlrpc"
}
}
["configure_options"]=>
array(1) {
[0]=>
array(3) {
["name"]=>
string(4) "test"
["prompt"]=>
string(15) "The prompt test"
["default"]=>
string(3) "foo"
}
}
}
Test 12
array(14) {
["provides"]=>
array(1) {
["class;furngy"]=>
array(3) {
["type"]=>
string(5) "class"
["name"]=>
string(6) "furngy"
["explicit"]=>
bool(true)
}
}
["filelist"]=>
&array(28) {
["package.dtd"]=>
array(1) {
["role"]=>
string(4) "data"
}
["template.spec"]=>
array(1) {
["role"]=>
string(4) "data"
}
["PEAR.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["System.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Autoloader.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Auth.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Build.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Common.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Config.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Install.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Package.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Registry.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Remote.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Command\Mirror.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Common.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Config.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Dependency.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Frontend\CLI.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Builder.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Installer.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Packager.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Registry.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["PEAR\Remote.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["OS\Guess.php"]=>
array(1) {
["role"]=>
string(3) "php"
}
["scripts\pear.sh"]=>
array(4) {
["role"]=>
string(6) "script"
["install-as"]=>
string(4) "pear"
["baseinstalldir"]=>
string(1) "/"
["replacements"]=>
array(4) {
[0]=>
array(3) {
["from"]=>
string(9) "@php_bin@"
["to"]=>
string(7) "php_bin"
["type"]=>
string(11) "pear-config"
}
[1]=>
array(3) {
["from"]=>
string(9) "@php_dir@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
[2]=>
array(3) {
["from"]=>
string(14) "@pear_version@"
["to"]=>
string(7) "version"
["type"]=>
string(12) "package-info"
}
[3]=>
array(3) {
["from"]=>
string(14) "@include_path@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
}
}
["scripts\pear.bat"]=>
array(5) {
["role"]=>
string(6) "script"
["platform"]=>
string(7) "windows"
["install-as"]=>
string(8) "pear.bat"
["baseinstalldir"]=>
string(1) "/"
["replacements"]=>
array(3) {
[0]=>
array(3) {
["from"]=>
string(9) "@bin_dir@"
["to"]=>
string(7) "bin_dir"
["type"]=>
string(11) "pear-config"
}
[1]=>
array(3) {
["from"]=>
string(9) "@php_bin@"
["to"]=>
string(7) "php_bin"
["type"]=>
string(11) "pear-config"
}
[2]=>
array(3) {
["from"]=>
string(14) "@include_path@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
}
}
["scripts\pearcmd.php"]=>
array(4) {
["role"]=>
string(3) "php"
["install-as"]=>
string(11) "pearcmd.php"
["baseinstalldir"]=>
string(1) "/"
["replacements"]=>
array(4) {
[0]=>
array(3) {
["from"]=>
string(9) "@php_bin@"
["to"]=>
string(7) "php_bin"
["type"]=>
string(11) "pear-config"
}
[1]=>
array(3) {
["from"]=>
string(9) "@php_dir@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
[2]=>
array(3) {
["from"]=>
string(14) "@pear_version@"
["to"]=>
string(7) "version"
["type"]=>
string(12) "package-info"
}
[3]=>
array(3) {
["from"]=>
string(14) "@include_path@"
["to"]=>
string(7) "php_dir"
["type"]=>
string(11) "pear-config"
}
}
}
}
["package"]=>
string(4) "test"
["summary"]=>
string(9) "PEAR test"
["description"]=>
string(8) "The test"
["release_license"]=>
string(11) "PHP License"
["maintainers"]=>
array(1) {
[0]=>
&array(4) {
["handle"]=>
string(4) "test"
["role"]=>
string(4) "lead"
["name"]=>
string(11) "test tester"
["email"]=>
string(12) "test@php.net"
}
}
["version"]=>
string(5) "1.3b4"
["release_date"]=>
string(10) "2003-11-17"
["release_state"]=>
string(4) "beta"
["release_notes"]=>
string(4) "test"
["release_deps"]=>
array(1) {
[1]=>
array(4) {
["type"]=>
string(3) "ext"
["rel"]=>
string(3) "has"
["optional"]=>
string(3) "yes"
["name"]=>
string(6) "xmlrpc"
}
}
["configure_options"]=>
array(1) {
[0]=>
array(3) {
["name"]=>
string(4) "test"
["prompt"]=>
string(15) "The prompt test"
["default"]=>
string(3) "foo"
}
}
["changelog"]=>
array(2) {
[0]=>
&array(5) {
["version"]=>
string(3) "0.1"
["release_date"]=>
string(10) "2003-07-21"
["release_license"]=>
string(11) "PHP License"
["release_state"]=>
string(5) "alpha"
["release_notes"]=>
string(22) "First release of test
"
}
[1]=>
&array(5) {
["version"]=>
string(3) "0.2"
["release_date"]=>
string(10) "2003-07-21"
["release_license"]=>
string(11) "PHP License"
["release_state"]=>
string(5) "alpha"
["release_notes"]=>
string(260) "Generation of package.xml from scratch is now supported. In addition,
generation of is supported and so is addition of
maintainers and configure options
- Fixed a bug in generation
- Added _addProvides() to generate a section
"
}
}
}