Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32189 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44842 invoked by uid 1010); 10 Sep 2007 13:56:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 44827 invoked from network); 10 Sep 2007 13:56:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2007 13:56:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=david.coallier@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=david.coallier@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.187 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: david.coallier@gmail.com X-Host-Fingerprint: 209.85.198.187 rv-out-0910.google.com Received: from [209.85.198.187] ([209.85.198.187:45921] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/67-01533-8FC45E64 for ; Mon, 10 Sep 2007 09:56:09 -0400 Received: by rv-out-0910.google.com with SMTP id k15so1092015rvb for ; Mon, 10 Sep 2007 06:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=5JeZagwFUWeyE7MsTd9AU6PefMm0UginH1th88r1Y0Q=; b=ppp/puv42m69Vz0YrvsA2RE+dn5cNnoAtGLG3wbz1uq8NILxK1CIUTR+GC5Xv99UhmMdl2cFz/qYcFrcvqagnCjIdMh9145Zx2zXAOt9p/6JAQUU2zFsPRVMRWeyWrnzmzdBUaJX+kScgvP7jp81fxHRPCIGN2eeEbcFzkT0o10= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=rmvCEzysgUuZNTz/DocfzWEoX7IEZjZ+qcviuhSKqMAr5anE9ktLjQ1+4P3V/kRouspHHpKDB/P5X436xdqC9pI0FgR3h8dxss7vZ2XHaXrHo8D2uXGDnho2EQ1fLJtfcHaXVEAxL5bAPPAPIowGXregwbF7b/00geR8YQMiSMs= Received: by 10.140.249.20 with SMTP id w20mr1375188rvh.1189432566367; Mon, 10 Sep 2007 06:56:06 -0700 (PDT) Received: by 10.140.127.15 with HTTP; Mon, 10 Sep 2007 06:56:06 -0700 (PDT) Message-ID: Date: Mon, 10 Sep 2007 09:56:06 -0400 Sender: david.coallier@gmail.com To: BuildSmart Cc: "Marcus Boerger" , "PHP Developers Mailing List" In-Reply-To: <64047417-3838-4E20-B767-110266B9F4A0@daleenterprise.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <199717507.20070910145329@marcus-boerger.de> <64047417-3838-4E20-B767-110266B9F4A0@daleenterprise.com> X-Google-Sender-Auth: b6e2713e61b8a426 Subject: Re: [PHP-DEV] PHP_FALIAS() From: davidc@php.net ("David Coallier") On 9/10/07, BuildSmart wrote: > -----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. > Actually if you look at zend_API.h which contains ZEND_FALIAS (PHP_FALIAS /main/php.h) you'll notice that as long as the includes are done, it's quite trivial to do :) Good luck, > > > > 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----- > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- David Coallier, Founder & Software Architect, Agora Production (http://agoraproduction.com) 51.42.06.70.18