Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32249 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2923 invoked by uid 1010); 11 Sep 2007 13:27:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2908 invoked from network); 11 Sep 2007 13:27:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2007 13:27:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=buildsmart@daleenterprise.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=buildsmart@daleenterprise.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain daleenterprise.com from 67.78.11.229 cause and error) X-PHP-List-Original-Sender: buildsmart@daleenterprise.com X-Host-Fingerprint: 67.78.11.229 daleenterprise.com Received: from [67.78.11.229] ([67.78.11.229:58975] helo=daleenterprise.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/01-28712-6A796E64 for ; Tue, 11 Sep 2007 09:27:03 -0400 Received: from localhost (localhost [127.0.0.1]) by daleenterprise.com (Postfix) with ESMTP id 98576245E60; Tue, 11 Sep 2007 09:04:18 -0400 (EDT) Received: from daleenterprise.com ([127.0.0.1]) by localhost (daleenterprise.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28540-17; Tue, 11 Sep 2007 09:04:14 -0400 (EDT) Received: from [10.1.100.11] (relay.mustangrestomods.com [67.78.11.226]) by daleenterprise.com (Postfix) with ESMTP id DFB35245E56; Tue, 11 Sep 2007 09:04:04 -0400 (EDT) In-Reply-To: References: <199717507.20070910145329@marcus-boerger.de> <64047417-3838-4E20-B767-110266B9F4A0@daleenterprise.com> <46E5882B.7010909@mysql.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: PHP Developers Mailing List Content-Transfer-Encoding: 7bit Date: Tue, 11 Sep 2007 09:04:03 -0400 To: Adam Maccabee Trachtenberg X-Pgp-Agent: GPGMail 1.1.2 (Tiger) X-Mailer: Apple Mail (2.752.2) MTA-Interface: amavisd-new-2.3.3 (2005-08-22) + Maia Mailguard 1.1.0 at daleenterprise.com X-Spam-Scanned: using SpamAssassin 3.1.7 (2006-10-05) at daleenterprise.com X-Virus-Scanned: using ClamAV 0.88.6 (2006-11-05) at daleenterprise.com Subject: Re: [PHP-DEV] PHP_FALIAS() From: buildsmart@daleenterprise.com (BuildSmart) -----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: > >> 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 Well, cursory testing proved successful and the general concept is good so I moved to the next phase and made an extension based on the script code but the added execution time defeated the purpose since no time savings was achieved, actually it ended up being a little slower so the only advantage was that the ext/mysqli extension could be used without script modification. The only way to keep the time savings would be to modify the ext/ mysqli extension which is essentially just combining ext/mysql and ext/mysqli extensions which in itself wont provide any significant benefits other than making the code harder to maintain. TIme to give up and move on. > > -adam - -- Dale -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFG5pJE0hzWbkf0eKgRAntNAKDGJ3oX8LRpk0XP8vrq6DNRpbhcDgCfWymU zbQ03KKHZ7htIdSxBqYH4C8= =m6+i -----END PGP SIGNATURE-----