|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6007 DBA Functions not found
Submitted: 2000-08-07 12:23 UTC Modified: 2000-08-07 13:20 UTC
From: yubby at lanset dot com Assigned:
Status: Closed Package: DBM/DBA related
PHP Version: 4.0.1pl2 OS: RedHat Linux 6.2
Private report: No CVE-ID: None
 [2000-08-07 12:23 UTC] yubby at lanset dot com
Similiar to the bug(s) reported for the "dbm" functions, I'm not able to use the "DBA" functions.  I created the simple 'test' script below and received the error message seen below it.   Note: there is no mention of the "dba" functions in the supplied file: "FUNCTION_LIST.txt" 
(I'm using Apache 1.3.12, RedHat 6.2, and PHP 4.0.1pl2)


if (!$db = dba_open($dbpath, "c", $dbtype)) {
  echo "Database creation failed";
  return -1;

Fatal error: Call to undefined function: dba_open() in /usr/local/apache/html/php/test-dba.php on line 5


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-07 12:25 UTC] yubby at lanset dot com
Oh, my installation of RedHat states that I have the following "gdbm" packages installed:

 [2000-08-07 12:27 UTC]
Please supply your configure line (You can get it by running a script with phpinfo(); ). Changes are big that your build of php doesn't have support for DBA functions.
 [2000-08-07 13:13 UTC] yubby at lanset dot com
Here's my 'config' line, to which I inserted the "--with-gdbm" line (and did a "make clean; make; make install") which has resolved the problem...  Sasha also wrote me on this, to which I replied that:

I hadn't originally included it in the 'configure' line since I kept seeing references to the 'dba' functions being "built-in", and the "INSTALL" file mentioning that nothing had to be done with 'extra libs' if using Apache

./configure --with-config-file-path=/usr/local/apache \
        --with-mysql=/usr/local/mysql \
        --with-ldap \
        --with-gdbm \

 [2000-08-07 13:20 UTC]
Resolved - will firm up the documentation on this one a bit.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 06:01:31 2024 UTC