Re: Wierd problem with PEAR on WindowsXP
| From: | rics | Date: | Tue, 14 Mar 2006 19:16:23 +0000 |
| Subject: | Re: Wierd problem with PEAR on WindowsXP | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23296@lists.php.net to get a copy of this message | ||
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
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?
I will continue with some tests here to figure it out...