php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14125 Intermittent failed class wrapper to DB
Submitted: 2001-11-19 17:49 UTC Modified: 2001-12-13 06:29 UTC
From: neil dot munro at catalyse dot net Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.6 OS: Suse Linux 6.2/MySQL 3.22.25
Private report: No CVE-ID: None
 [2001-11-19 17:49 UTC] neil dot munro at catalyse dot net
"Fatal: Cannot instantiate non-existent class DB_Sql in ... common.php line 23" and the program aborts.

----common.php:
include("./db_mysql.inc");
$db = new DB_Sql(); <--line 23
$db->Database = DATABASE_NAME;
etc.
----
----db_mysql.inc:
class DB_Sql {
  /* public: connection parameters */
  var $Host     = "";
  var $Database = "";
  var $User     = "";
  var $Password = "";
etc.
----
./configure --with-mysql --with-apache=../apache_1.3.19 --enable-track-vars
----
The error happens unpredictably, i.e. the application works fine for say 30 mins and then this message appears on one or more clients. Hitting Refresh allows recovery so it is a temporary failure.

I am putting this here in case it relates to MySQL - could this be a result of connection problems? Or, if not, what would trigger this sort of message given that the code must be OK as it works most of the time - common.php is included in all pages.

Thanks,

Neil Munro.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-20 18:39 UTC] mfischer@php.net
For a start, can you try if this still happens with the latest RC ?

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.
 [2001-12-13 06:29 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 18:01:34 2025 UTC