php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: yubby at lanset dot com
New email:
PHP Version: OS:

 

 [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)

<?php
$dbpath="/tmp/yubby.db";
$dbtype="gdbm";

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



Patches

Pull Requests

History

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:

gdbm-1.8.0-3
gdbm-devel-1.8.0-3
 [2000-08-07 12:27 UTC] derick@php.net
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
1.3.X...

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

Thanks...
 [2000-08-07 13:20 UTC] rasmus@php.net
Resolved - will firm up the documentation on this one a bit.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 10:01:30 2024 UTC