Re: [PHP4BETA] auto_prepend_file

From: Date: Thu, 10 Jun 1999 12:34:05 +0000
Subject: Re: [PHP4BETA] auto_prepend_file
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-1451@lists.php.net to get a copy of this message
On Thu, Jun 10, 1999 at 02:26:44PM +0200, Sascha Schumann wrote: > On Thu, Jun 10, 1999 at 02:21:27PM +0200, Sascha Schumann wrote: > > I get the error > > > > Fatal error: Undefined parent class 'DB_Sql' in [no active file] > > on line 0 > > > > The application in question uses PHPLIB. Any chance that I get > > the real filename/line number to track down the error? > > > > The server is running php4+libzend checkout which is only some > > hours old. > > Hm, I get the same error, if I kick out the auto_prepend_file and > require the prepend file from inside the script. I only get a > misleading error, if I include the prepend script: > > Fatal error: Undefined parent class 'DB_Sql' in > /usr/service/scstool/site/test.phtml on line 3 > > line 3 is: > > include "prepend.inc"; > > :-) So, prepend.inc has a nice list of requires: require "template.inc"; require "db.inc"; require "pwgen.inc"; require "session.inc"; require "ct_sql.inc"; require "page.inc"; require "auth.inc"; require "perm.inc"; require "menu.inc"; require "extend.inc"; Changing the 2nd line to include "db.inc"; kills the error that DB_Sql would be undefined. Unfortunately, I get then Fatal error: Undefined parent class 'CT_Sql' in /usr/service/scstool/site/test.phtml on line 3 Changing the 5th line to include "ct_sql.inc" did not help now. I tried s/^require/include/, but that did not help either. -- Regards, Sascha Schumann Consultant

« previous php.version4 (#1451) next »