| Dmitri 2008-02-22, 7:14 pm |
| Hello!
I am trying to write a pear installer-based plugin system, similar to
example in Greg Beaver's book (MyBlog example)
I came across the strange behaviour when calling getChannel() method of
PEAR registry class
Can someone try this code and tell me if this is a bug or am I just
using it wrong ?
I just want to know if maybe there is a problem on my server, so just
need someone to duplicate this bug (or not)
This is the code (very simple test)
<?php
require_once 'PEAR/Config.php';
$config = PEAR_Config::singleton();
$reg = $config->getRegistry(); // $config is PEAR_Config object
$chan = $reg->getChannel('pear.php.net'); // always returns error object
listing every possible error
print_r($chan);
?>
For me it's always returns pear error object listing every possible
error - notice I even use the pear.php.net channel just to
be sure that this is not a problem with channel.xml (I trust that
channel.xml on pear site is correct)
But this error object also lists many elements of the chanel.xml file
that are correct.
--
Open Source ALL content management
with streaming video
http://wiki.sharedlog.com
|