Hey,

You know that mysql now includes an embedded mysql "server" library?
Well, a few months ago I decided to take a look - it was experimental
then (and probably still is) so I had to build it myself.

Then I needed to add support to PHP, so I copied the mysql extension
code and renamed all the PHP functions from mysql_xxx to mysqlemd_xxx,
compiled it and got it working.  It's since been suffering from bit-rot.

It would be cool to offer support for this to PHP.  Now, since the
extension code is the same as the mysql extension but with different
names for the PHP functions, it would be nice if we had some way to
build both the regular network client and embedded variants from the
same code base (to avoid maintenance nightmares!).

What would be really, really cool would be being able to use both the
embedded and network variants in the same installation (same script
even).

How can we do that?? C pre-proc trickery might work for the compilation.
But what about symbol collision if we are linking to two different libraries
that have the same symbol names?

I'm thinking mainly of win32 here: I can see a potential use for the
embedded mysql library to maintain a local database which is used in an
"offline" state, but updates and queries come from a remote database
when online.
I *think* that if we build both extensions as DLLs things will work sensibly.

Does anyone have any ideas or comments about this?

--Wez.

-- 
Wez Furlong
The Brain Room Ltd.


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to