Re: PHP_FALIAS()
| From: | BuildSmart | Date: | Mon, 10 Sep 2007 21:19:28 +0000 |
| Subject: | Re: PHP_FALIAS() | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32211@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sep 10, 2007, at 16:15:35, Adam Maccabee Trachtenberg wrote:
On Mon, 10 Sep 2007, BuildSmart wrote:Kewl, the majority of the POC already done, thanks.Perhaps the best approach would be to mimic the ext/mysql functions and feed them to ext/mysqli function rather than aliasing them directly but maybe a performance trade-off might be encountered as a result.Based on my experiences, if you're keeping to the procedural interface, aren't doing crazy things with default links, and not adding in anything new, the API changes are relatively small and self-contained. So, I would suggest people take the minimal amount of time to migrate through using search and replace and minor syntax updates. It solves the speed issue and sets you up to take advantage of MySQLi-only features. However, if you feel the need to do this for various reasons, I would start here: http://old.coggeshall.org/show_source.php?filename=mysql2mysqli.php
-adam- -- Dale -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFG5bTg0hzWbkf0eKgRAi+ZAKDAWWa+HrEACbZj079MzRzlOipaawCgk4JH yCCOKVFrkd9zqqkQBIvRDXM= =nWIJ -----END PGP SIGNATURE-----