Re: Re: Wierd problem with PEAR on WindowsXP

From: Date: Tue, 14 Mar 2006 19:31:22 +0000
Subject: Re: Re: Wierd problem with PEAR on WindowsXP
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23297@lists.php.net to get a copy of this message
rics wrote:
rics escreveu:
Hello, I have wamp5 (www.wampserver.com) installed here. This is a package that install Apache, PHP5, MySQL and so on... I runned go-pear and all gone ok. I need to put some paths manually to the pear command line to work, but it worked. I then, install some packages, like PEAR_Info using the command line. Everything gone ok. But when I try to use PEAR in my codes, I have some strange errors. For Example: <?php
    require_once 'PEAR/Info.php';
    print 'step 1 ok<br>';
    $info = new PEAR_Info();
    print 'step 2 ok<br>';
    $info->show();
?> The file is included without any problem, because I have "step 1" printed on the screen. But them I get this error: Fatal error: Call to a member function getVersion() on a non-object in C:\wamp\php\PEAR\PEAR\Info.php on line 57
I guess null is no object
Did you can help me with this wierd problem? Why can't I use PEAR if all seems to be ok? rics
I have tested other package (HTML_QuickForm) and all seems to be OK. I think I have a problem only in the PEAR_Info package. Can it be?
Yes, it's using PEAR's internals ... not checking results of calls Check bugs, if not there put some
I will continue with some tests here to figure it out... Cheers
-- toggg

« previous php.pear.general (#23297) next »