php3-list | 199903
Date: 03/02/99
- Next message: Rich Fox: "Re: [PHP3] [PHPLIB] one file, multiple sessions"
- Previous message: Keith Hasson: "[PHP3] Reading /home/ directories"
- In reply to: Gergely Madarasz: "Re: [PHP3] 3.0.7"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Actually what I would like is to tell configure what library to use for
> dbm support (-ldb2) and where it should find the header for it
> (-I/usr/include/db2)
The entire dbm handling code really needs a complete overhaul. It was the
first PHP module ever written and the code goes all the way back to PHP
version 1 with only a few minor updates by Jim when he transferred it to
PHP3.
The problem is that all these DBM libraries are a pain in the ass. At the
API level there are subtle differences between them. If you look through
functions/db.c you will see crap like:
#if GDBM_FIX
key_datum.dsize++;
#endif
and
#if GDBM
/* all but NDBM use malloc to allocate the content blocks, so we need to
free it */
free(value_datum.dptr);
#else
# if !NDBM
efree(value_datum.dptr);
# endif
#endif
It also doesn't make much sense that only one type of DBM file can be
used. There are times when it would be useful to be able to access both
gdbm and Berkeley db2 files, for example. It's on my list, but fighting
with DBM code is exceedingly dull so the motivation is lacking.
-Rasmus
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Rich Fox: "Re: [PHP3] [PHPLIB] one file, multiple sessions"
- Previous message: Keith Hasson: "[PHP3] Reading /home/ directories"
- In reply to: Gergely Madarasz: "Re: [PHP3] 3.0.7"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

