Re: #19077 [Opn->Bgs]: dba_open fails

From: Date: Fri, 23 Aug 2002 19:47:43 +0000
Subject: Re: #19077 [Opn->Bgs]: dba_open fails
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-87364@lists.php.net to get a copy of this message
On 23 Aug 2002 georg@php.net wrote: > Sorry, but the bug system is not the appropriate forum for asking > support questions. Your problem does not imply a bug in PHP itself. > For a list of more appropriate places to ask for help using PHP, > please visit http://www.php.net/support.php > > Thank you for your interest in PHP. We all use this nice quick fix thing, but we almost never add why this is not a bug. IMO we should do this otherwise the users will complain with "THIS IS A BUG" (or even worse language :). regards, Derick > Previous Comments: > ------------------------------------------------------------------------ > > [2002-08-23 14:37:25] wboring@qualys.com > > 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 this bug report at > http://bugs.php.net/?id=19077&edit=1 > --------------------------------------------------------------------------- Derick Rethans http://www.derickrethans.nl/ JDI Media Solutions http://www.jdimedia.nl/ ---------------------------------------------------------------------------

« previous php.dev (#87364) next »