PHP 4.0 Bug #5746 Updated: --without-dbm feature to disable DBM support

From: Date: Fri, 29 Sep 2000 12:36:36 +0000
Subject: PHP 4.0 Bug #5746 Updated: --without-dbm feature to disable DBM support
Groups: php.dev 
Request: Send a blank email to php-dev+get-33848@lists.php.net to get a copy of this message
ID: 5746 Updated by: sniper Reported By: cahagn_o@epita.fr Status: Closed Bug Type: Feature/Change Request Assigned To: Comments: Fixed in CVS. No need for --without option. I just made ext/db not enabled by default. --Jani Previous Comments: --------------------------------------------------------------------------- [2000-07-23 12:21:08] cahagn_o@epita.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). --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=5746

« previous php.dev (#33848) next »