|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 18:00:01 2025 UTC |
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...