[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-doc
Subject: [PEAR-DOC] [PEAR-BUG] Bug #17588 [Opn]: Pyrus Install - No channel.xml
From: warnar () dmmw ! nl
Date: 2010-07-14 9:18:40
Message-ID: 20100714101014.92165193A26 () euk1 ! php ! net
[Download RAW message or body]
Edit report at http://pear.php.net/bugs/bug.php?id=17588&edit=1
ID: 17588
Updated by: warnar@dmmw.nl
Reported By: warnar at dmmw dot nl
Summary: Pyrus Install - No channel.xml
Status: Open
Type: Bug
Package: Documentation
Operating System: Windows 7 x64
PHP Version: 5.3.1
Roadmap Versions:
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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
--
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic