Date: 07/22/00
- Next message: waldschrott: "[PHP-DEV] segfault on linux, crash on win *no* circular include with include_once()"
- Previous message: waldschrott: "Re: [PHP-DEV] bound to unix-timestamp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 (200007211345 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. :)
BTW, should I submit a bug report for the following warnings when
compiling: (already sent a mail here but got no answer)
file.c:599: warning: tempnam() possibly used unsafely, consider using
mkstemp()
rfc1867.c:284: warning: tempnam() possibly used unsafely, consider using
mkstemp()
-- Olivier.Cahagne <email protected>-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: waldschrott: "[PHP-DEV] segfault on linux, crash on win *no* circular include with include_once()"
- Previous message: waldschrott: "Re: [PHP-DEV] bound to unix-timestamp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

