php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #5746 --without-dbm feature to disable DBM support
Submitted: 2000-07-23 12:21 UTC Modified: 2000-09-29 08:36 UTC
From: cahagn_o at epita dot fr Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Latest CVS (23/07/2000) OS: NetBSD 1.3.3, RedHat 6.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cahagn_o at epita dot fr
New email:
PHP Version: OS:

 

 [2000-07-23 12:21 UTC] cahagn_o at epita dot fr
Hi,

I'd like to know if adding --without-dbm could be possible
(ala --without-gd).

I build PHP on a system where I don't need support for dbm,
therefore, includes and libs are present and PHP always
builds ndbm support and it increases the PHP binary size.

I tried configuring with --with-dbm=no --with-ndbm=no but it
didn't change anything (neither did --without-nbdm).

PHP (200007231345 snapshot) always finds the following:

checking for dbm_ochecking for db1/ndbm.h... no
checking for gdbm_open in -lgdbm... no
checking for dbm_open in -ldb... no
checking for dbm_open in -lc... yes
checking preferred dbm library... ndbm chosen
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB2 support... no
checking for Berkeley DB3 support... no
checking for DBM support... no
checking for CDB support... no
checking whether to enable DBA interface... no

I don't configure dba support or dbm support via ./configure
(only dBase but it's not related):

./configure
--with-config-file-path=/space/www/etc/httpd/conf/php_cgi \
--enable-discard-path \
--with-gd=/u/guest/www/mbin/i386-NetBSD \
--with-mysql \
--with-dbase \
--with-zlib=/u/guest/www/mbin/i386-NetBSD \
--with-mcrypt=/u/guest/www/mbin/i386-NetBSD \
--with-mhash=/u/guest/www/mbin/i386-NetBSD \
--enable-ftp \
--enable-inline-optimization \
--with-jpeg-dir=/u/guest/www/mbin/i386-NetBSD \
--with-imap=/u/guest/www/mbin/i386-NetBSD/lib

You can check dbm is active via the following phpinfo() script:

http://www.epita.fr:8000/~cahagn_o/php/info.php

dbm functions are working but I do not have a dbm base
anywhere. You can test the functions are not missing here:

http://www.epita.fr:8000/~cahagn_o/php/dbm/

This is on NetBSD 1.3.3, I checked on a RedHat 6.2, it's not
automatically included:

checking for db1/ndbm.h... yes
checking for gdbm_open in -lgdbm... yes
checking preferred dbm library... gdbm chosen
checking for gdbm.h... yes
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB2 support... no
checking for Berkeley DB3 support... no
checking for DBM support... no
checking for CDB support... no
checking whether to enable DBA interface... no

but phpinfo() doesn't mention anything about dbm and
dblist() returns nothing. Therefore, the script given as an
example in the Web documentation works (!). I'm just more
and more surprised. :)

I tried modifying ext/db/config.m4 to disable dbm support by
removing the last 3 lines but it wouldn't compile, I don't
know enough about autoconf.

PS: Sorry if this is duplicate with php-dev (I already
talked about that but got no answer).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-29 08:36 UTC] sniper@php.net
Fixed in CVS.  
No need for --without option. I just made ext/db not enabled by default. 

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC