Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32205 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71053 invoked by uid 1010); 10 Sep 2007 20:15:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71038 invoked from network); 10 Sep 2007 20:15:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2007 20:15:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam@trachtenberg.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=adam@trachtenberg.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain trachtenberg.com from 216.93.242.2 cause and error) X-PHP-List-Original-Sender: adam@trachtenberg.com X-Host-Fingerprint: 216.93.242.2 miranda.org Linux 2.6 Received: from [216.93.242.2] ([216.93.242.2:48111] helo=miranda.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/51-59734-BE5A5E64 for ; Mon, 10 Sep 2007 16:15:40 -0400 Received: (qmail 481 invoked by uid 546); 10 Sep 2007 16:15:35 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Sep 2007 16:15:35 -0400 Date: Mon, 10 Sep 2007 16:15:35 -0400 (EDT) X-X-Sender: adam@miranda.org To: BuildSmart cc: PHP Developers Mailing List In-Reply-To: Message-ID: References: <199717507.20070910145329@marcus-boerger.de> <64047417-3838-4E20-B767-110266B9F4A0@daleenterprise.com> <46E5882B.7010909@mysql.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] PHP_FALIAS() From: adam@trachtenberg.com (Adam Maccabee Trachtenberg) On Mon, 10 Sep 2007, BuildSmart wrote: > 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 -- adam@trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today!