Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32190 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71842 invoked by uid 1010); 10 Sep 2007 14:45:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71827 invoked from network); 10 Sep 2007 14:45:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2007 14:45:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:40598] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/81-60221-F7855E64 for ; Mon, 10 Sep 2007 10:45:21 -0400 Received: (qmail 7066 invoked by uid 507); 10 Sep 2007 14:45:16 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@82.135.64.23) by mail4.netbeat.de with ESMTPA; 10 Sep 2007 14:45:16 -0000 Organization: php.net To: internals@lists.php.net Date: Mon, 10 Sep 2007 16:45:15 +0200 User-Agent: KMail/1.9.7 Cc: BuildSmart , Marcus Boerger References: <199717507.20070910145329@marcus-boerger.de> <64047417-3838-4E20-B767-110266B9F4A0@daleenterprise.com> In-Reply-To: <64047417-3838-4E20-B767-110266B9F4A0@daleenterprise.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200709101645.15794.johannes@php.net> Subject: Re: [PHP-DEV] PHP_FALIAS() From: johannes@php.net (Johannes =?iso-8859-1?q?Schl=FCter?=) Hi, On Monday 10 September 2007 03:31:32 pm BuildSmart wrote: > 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. I, personally, don't think it's such a good idea to replace the dependency = of=20 the mysql extension with an dependency on two extensions, mysql_alias+mysql= i,=20 and also you should keep in mind that ext/mysql and ext/mysqli might work a= =20 bit different in a few minor places. =46or going from ext/mysql to ext/mysqli the MySQL guys have some conversio= n=20 script somewhere on their site afaik. And a last thought: If you need a wrapper wrapping ext/mysql API over mysql= i=20 I'd do it in PHP since distributing PHP code is way simpler than distributi= ng=20 some extension and the performance lost can be ignored since most time is=20 still lost while doing communication with the database server. (the few=20 exceptions usually can do other optimizations giving better results or simp= ly=20 use no wrapper) johannes =2D-=20 Johannes Schl=FCter http://schlueters.de