Re: PHP_FALIAS()

From: Date: Mon, 10 Sep 2007 13:31:32 +0000
Subject: Re: PHP_FALIAS()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-32188@lists.php.net to get a copy of this message
-----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.
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-----

« previous php.internals (#32188) next »