On 9/10/07, BuildSmart <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > On Sep 10, 2007, at 08:53:29, Marcus Boerger wrote: > > > Hello BuildSmart, > > > > If you have the correct includes in place, sure. > > > > marcus > > Thanks for the response, OK I think I can manage that with ease, what > I'm contemplating to do is create a mysql_alias extension that > aliases the mysql extension functions to the mysqli equivalents since > a lot of scripts and packages are already dependent on the mysql > extension but it's been deprecated (so I've been informed) and I was > thinking of a simple method to allow the dropping of the mysql > extension in favor of the mysqli extension without having to rewrite > existing scripts and packages. > > Since you claims it's possible to alias an external extensions > functions I guess it's just a matter of getting the includes worked > out and what headers need to be loaded in the faking module. > > This will probably require a little finessing but shouldn't be too > difficult or complicated. >
Actually if you look at zend_API.h which contains ZEND_FALIAS (PHP_FALIAS /main/php.h) you'll notice that as long as the includes are done, it's quite trivial to do :) Good luck, > > > > Saturday, September 8, 2007, 11:36:15 AM, you wrote: > > > >> -----BEGIN PGP SIGNED MESSAGE----- > >> Hash: SHA1 > > > >> I've seen several examples of PHP_FALIAS within a single module, I'm > >> wondering if it's possible to have one module with aliases > >> referencing functions in another module? > > > >> - -- Dale > >> -----BEGIN PGP SIGNATURE----- > >> Version: GnuPG v1.4.2.2 (Darwin) > > > >> iD8DBQFG4m0P0hzWbkf0eKgRAmlXAKChGWEIl+Hz9uOFVFv76qddNH0T5wCeIllB > >> VsN5vneLwIMBXwBTSEzSbH0= > >> =fw4n > >> -----END PGP SIGNATURE----- > > > > > > > > > > Best regards, > > Marcus > > - -- Dale > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (Darwin) > > iD8DBQFG5Uc00hzWbkf0eKgRAomHAKCegTASJWoqwHi+szmDwiXU82wVdQCgqzBT > uf2junm3kDfwnOZzDTnCKOI= > =+07f > -----END PGP SIGNATURE----- > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- David Coallier, Founder & Software Architect, Agora Production (http://agoraproduction.com) 51.42.06.70.18 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php