For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > February 2008 > Is this a bug in the new PEAR?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Is this a bug in the new PEAR?
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com