Re: replacing dbm_* with dba_*
| From: | Sascha Schumann | Date: | Sun, 20 Jun 1999 15:41:34 +0000 |
| Subject: | Re: replacing dbm_* with dba_* | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-7225@lists.php.net to get a copy of this message | ||
On Sun, Jun 20, 1999 at 11:36:40AM -0400, Rasmus Lerdorf wrote:
> > I'm not sure which interface DB1 uses. Maybe the code supports it
> > by accident? :-)
>
> By accident? Back when I wrote the original code, there was no Berkeley
> DB2. I specifically tested things against Berkeley DB1 back then. The
> code has transposed itself a bit since then.
For example, one can access the modern DB2 through the historic
ndbm interface. Hence, your db.c supports DB2 without explicitly
coding to the DB2 interface (db_open() stuff). That's what I mean
by "accident."
> > Changing APIs is a Bad Thing(tm). Especially, if it's not
> > absolutely necessary.
>
> Well, the dba stuff probably isn't heavily used yet. If we need to change
> something we should probably do it now.
Well, it's not written in stone.
--
Regards,
Sascha Schumann
Consultant