#19077 [NEW]: dba_open fails

From: Date: Fri, 23 Aug 2002 18:37:26 +0000
Subject: #19077 [NEW]: dba_open fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17689@lists.php.net to get a copy of this message
From: wboring@qualys.com Operating system: Redhat 6.2 kernel 2.2.10 PHP version: 4.2.2 PHP Bug Type: DBM/DBA related Bug description: dba_open fails I have a site that I have written using the gdbm db on a redhat 6.2 box for reasons out of my control, I cannot use a mysql/postgres/etc. style of db, and I am forced to use gdbm. I am having intermittent problems with php 4.2.2 and dba_open. on some pages I am getting php errors of [23-Aug-2002 11:09:37] PHP Warning: driver initialization failed in ../lib/db.inc on line 72 [23-Aug-2002 11:09:37] PHP Warning: Unable to find DBA identifier 0 in ../lib/db.inc on line 131 [23-Aug-2002 11:09:37] PHP Warning: Unable to find DBA identifier 0 in ../lib/db.inc on line 274 [23-Aug-2002 11:09:37] PHP Warning: Unable to find DBA identifier 0 in ../lib/db.inc on line 275 [23-Aug-2002 11:09:37] PHP Warning: Unable to find DBA identifier 0 in ../lib/db.inc on line 276 db.inc is a class that I wrote to handle all access thru to a dba_* style db. on access to a page works, the next fails w/ this driver initialization failed error. I have gdbm 1.8.0-3 installed. the dba_open call looks like class db { ... ... function connect() { $this->_rsc = dba_open($this->get_db_filename(), "c", "gdbm"); if (!$this->_rsc) { //we are in trouble here. var_dump( "FAILED TO CONNECT TO DB ". $this->get_db_filename() ); var_dump( $this->_rsc ); } } I NEVER see the var_dump lines as php bails during the dba_open() call. any ideas/help? An ideas/help? -- Edit bug report at http://bugs.php.net/?id=19077&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19077&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19077&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19077&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19077&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19077&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19077&r=support Expected behavior: http://bugs.php.net/fix.php?id=19077&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19077&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19077&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19077&r=globals

« previous php.bugs (#17689) next »