php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17152 driver initialization failed in [script_name] on [line_num]
Submitted: 2002-05-11 01:37 UTC Modified: 2002-09-11 11:04 UTC
Votes:6
Avg. Score:4.0 ± 1.0
Reproduced:5 of 5 (100.0%)
Same Version:2 (40.0%)
Same OS:1 (20.0%)
From: dave at thinkhost dot com Assigned:
Status: No Feedback Package: DBM/DBA related
PHP Version: 4.2.0 OS: RedHat 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
44 - 16 = ?
Subscribe to this entry?

 
 [2002-05-11 01:37 UTC] dave at thinkhost dot com
When executing the following code:

<?php

  echo "Starting...<BR>\n";

  $dba = dba_open("./test.db", "r", "ndbm");

?>

The following error message is encountered:

Warning: driver initialization failed in /var/www/devuser/devbox-mx.dhs.org/www/test/test.php on line 5

PHP 4.2.0 was compiled with the following command:

'./configure' '--with-apxs=/usr/sbin/apxs' '--with-mysql' '--with-pgsql' '--with-config-file-path=/etc' '--enable-track-vars' '--disable-short-tags' '--disable-posix' '--with-curl' '--with-gettext' '--with-ldap' '--with-zlib' '--with-dom' '--with-db' '--with-gdbm=/usr/include/gdbm' '--with-ndbm=/usr/include/db1' '--with-db2=/usr/include/db2' '--with-db3=/usr/include/db3'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-11 16:04 UTC] dave at thinkhost dot com
The problem has further degraded...

Insteading getting a PHP warning about driver init failure, the page fails to load, and I am getting all kinds of these messages in HTTPD's error_log that read:

[notice] child pid [PID] exit signal Segmentation fault (11)

I'm convinced that this is a problem with PHP.
 [2002-05-11 16:07 UTC] dave at thinkhost dot com
Note the the above error (segfault) is encountered when the following code is executed:

$dba = dba_open("./test.db", "r", "db2");

So the segfault is related to a different driver set
 [2002-05-11 16:08 UTC] mfischer@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2002-09-11 11:04 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 22:01:28 2024 UTC