Problem: inheritance

From: Date: Sat, 04 Jan 2003 01:01:05 +0000
Subject: Problem: inheritance
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3183@lists.php.net to get a copy of this message
I have the following php code for including the pear DB::mysql in a index.php file: include_once "DB/mysql.php"; If I try to load it as it is I get the following: Fatal error: Class db_common: Cannot inherit from undefined class pear in /usr/share/pear/DB/common.php on line 29 If I look at DB/mysql.php I see that requires DB/common.php. Ok so why is common.php giving me the error? Its extending PEAR. Ok. So why does it not require PEAR.php since its a undefined class? mysql.php required common.php to resolve the DB_common class. Stephen -- Stephen Torri <storri@sbcglobal.net>

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.pear.general (#3183) next »