Bug #17588 [Opn->Csd]: Pyrus Install - No channel.xml
| From: | mfonda@php.net | Date: | Fri, 24 Jun 2011 17:38:00 +0000 |
| Subject: | Bug #17588 [Opn->Csd]: Pyrus Install - No channel.xml | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-12108@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17588&edit=1
ID: 17588
Updated by: mfonda@php.net
Reported By: warnar at dmmw dot nl
Summary: Pyrus Install - No channel.xml
-Status: Open
+Status: Closed
Type: Bug
Package: Documentation
Operating System: Windows 7 x64
PHP Version: 5.3.1
-Assigned To:
+Assigned To: mfonda
Roadmap Versions:
New Comment:
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: mfonda
Bug migrated Pyrus issue tracker on github: see
https://github.com/pear2/PEAR2_Pyrus/issues/36
Previous Comments:
------------------------------------------------------------------------
[2010-07-14 10:10:14] boekkooi
There is one change i made in pearconfig.xml:
<preferred_state>alpha</preferred_state>
When changing the back to 'stable' and retrying the same exception
occures.
------------------------------------------------------------------------
[2010-07-14 10:03:47] boekkooi
Description:
------------
\PEAR2\Pyrus\Config::singleton('d:\pear\testRepo') throws a 'Fatal
error: Uncaught exception 'PEAR2\Pyrus\ChannelFile\Exception' with
message 'Invalid channel.xml' in
D:\pear\repo\php\PEAR2\Pyrus\ChannelFile\Parser\v1.php'.
It looks like when i create a new registry with the following command
(this is not my main registry):
php pyrus.phar D:\pear\testRepo install PEAR2_autoload
No channel.xml is made.
Test script:
---------------
To reproduce:
- Create a second registry:
php pyrus.phar D:\pear\testRepo install PEAR2_autoload
- Run code:
<?php
require_once 'PEAR2\Autoload.php';
$config = \PEAR2\Pyrus\Config::singleton('d:\pear\testRepo');
Expected result:
----------------
A \PEAR2\Pyrus\Config instance.
After runnings:
php pyrus.phar D:\pear\testRepo list-channels
All works like a charm.
Actual result:
--------------
Fatal error: Uncaught exception 'PEAR2\Pyrus\ChannelFile\Exception' with
message 'Invalid channel.xml' in
D:\pear\repo\php\PEAR2\Pyrus\ChannelFile\Parser\v1.php:34
Stack trace:
#0 D:\pear\repo\php\PEAR2\Pyrus\ChannelRegistry\Base.php(295):
PEAR2\Pyrus\ChannelFile\Parser\v1->parse('D:\pear\repo\ph...', true)
#1 D:\pear\repo\php\PEAR2\Pyrus\ChannelRegistry\Base.php(265):
PEAR2\Pyrus\ChannelRegistry\Base->getDefaultChannel('pear.php.net')
#2 D:\pear\repo\php\PEAR2\Pyrus\ChannelRegistry\Base.php(304):
PEAR2\Pyrus\ChannelRegistry\Base->getPearChannel()
#3 D:\pear\repo\php\PEAR2\Pyrus\ChannelRegistry\Sqlite3.php(119):
PEAR2\Pyrus\ChannelRegistry\Base->initDefaultChannels()
#4 D:\pear\repo\php\PEAR2\Pyrus\ChannelRegistry\Sqlite3.php(55):
PEAR2\Pyrus\ChannelRegistry\Sqlite3->_init('D:\pear\testrep...', false)
#5 D:\pear\repo\php\PEAR2\Pyrus\ChannelRegistry.php(61):
PEAR2\Pyrus\ChannelRegistry\Sqlite3->__construct('D:\pear\testrep...',
false)
#6 D:\pear\repo\php\PEAR2\Pyrus\Registry.php(116):
PEAR2\Pyrus\ChannelRegistry->__constru in
D:\pear\repo\php\PEAR2\Pyrus\Config.php on line 515
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17588&edit=1