#19077 [Opn->Fbk]: dba_open fails
| From: | sniper@php.net | Date: | Fri, 23 Aug 2002 22:24:56 +0000 |
| Subject: | #19077 [Opn->Fbk]: dba_open fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17698@lists.php.net to get a copy of this message | ||
ID: 19077
Updated by: sniper@php.net
Reported By: wboring@qualys.com
-Status: Open
+Status: Feedback
Bug Type: DBM/DBA related
Operating System: Redhat 6.2 kernel 2.2.10
PHP Version: 4.2.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
I'm unable to reproduce this with PHP 4.3.0-dev.
Previous Comments:
------------------------------------------------------------------------
[2002-08-23 15:41:11] wboring@qualys.com
I beg to differ. This is actually a bug. If you read the bug, it
states that I cannot use dba_open(). it intermittently fails. This is
a bug in php, that prevents me from opening a db file.
------------------------------------------------------------------------
[2002-08-23 14:55:02] georg@php.net
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.
------------------------------------------------------------------------
[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