RE: [PHP] problems with phplib on php --> 4.0.1pl2 (SOLVED, kind of...)

From: Date: Thu, 12 Oct 2000 16:11:16 +0000
Subject: RE: [PHP] problems with phplib on php --> 4.0.1pl2 (SOLVED, kind of...)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19831@lists.php.net to get a copy of this message
> Has anyone else noticed problems with phplib-based applications after > upgrading from 4.0.1pl2 - each and every of my PHPLIB-based > applications are > just dying with: > > Fatal error: Cannot redeclare class db_sql in /webroot/phplib/db_pgsql.inc > on line 12 > > When used with 4.0.2 or 4.0.3. Downgrading to 4.0.1pl2 fixes the problem. I'm replying to my own message because I found out what the problem was. I have defined several different include-dir configurations in httpsd.conf using php_admin_value include_dir inside <VirtualHost> -blocks and up to 4.0.1pl2 this has worked well. Apperantly after upgrade php keeps the last configuration it sees (one of my <VirtualHost> -blocks had an auto-prepend setting set to prepend.php3 and that caused the error-message above) and doesn't honour the previosly set values for those hosts. Is this a change in PHP, a bug, or have I done something terribly wrong? I moved the php_admin_value -settings from httpsd.conf to .htaccess files (ofcourse I had to redefine them as php_value -directives) and everything works fine now, but is this the desired way of doing things? -Kari A.

« previous php.general (#19831) next »