[ DB ] Fatal error: Class db_error: Cannot inherit from undefined class pear_error on line 622
| From: | PHPcoder | Date: | Thu, 11 Sep 2003 13:05:36 +0000 |
| Subject: | [ DB ] Fatal error: Class db_error: Cannot inherit from undefined class pear_error on line 622 | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-21393@lists.php.net to get a copy of this message | ||
my system : W2K + apache 2.0.46 + PHP 4.3.3RC4 + PEAR
last week i used PEAR without any problem.
Since yesterday I don't know why but I get an error message (look at the
title) while reunning this easy script :
<?PHP
require_once 'DB.php';
?>
my php.ini is well called (verifyed with phpinfo) and has a usually good
include_path (include_path = ".;D:\server\php\PEAR")
DB.php is well called by my script (no stream error) and PEAR.php called by
DB.php don't show any stream error.
But DB.php is unable to look inside PEAR.php or it should see the pear_error
class it wants to extends.
The Solution i find is :
_I do an ini_set("include_path", "D:\server\php\PEAR"); before my
require_once
_OR I change DB.php : require_once('PEAR.php'); on line 25 INTO
require_once('D:\server\php\PEAR\PEAR.php');
_OR amazingly I change the php.ini :
include_path = ".;D:\server\php\PEAR" INTO include_path =
"D:\server\php\PEAR;.")
I really don't know what has been modified to oblige me to modify the ini or
my script.
I hope it will help some guy.