Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84373 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38970 invoked from network); 6 Mar 2015 01:59:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2015 01:59:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=sean@seancoates.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sean@seancoates.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain seancoates.com from 208.72.237.35 cause and error) X-PHP-List-Original-Sender: sean@seancoates.com X-Host-Fingerprint: 208.72.237.35 pb-smtp1.int.icgroup.com Received: from [208.72.237.35] ([208.72.237.35:56911] helo=sasl.smtp.pobox.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/A0-33996-CF909F45 for ; Thu, 05 Mar 2015 20:59:25 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id A68133EB2C; Thu, 5 Mar 2015 20:59:21 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=content-type :mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=sasl; bh= z/sxwZbvmo1sn6CBbI1Hy26Y+VM=; b=FKpmnEhl3z3neM2fNxPpxNJXoqH6OFWD NKqdv7q8FDg4fYPZVvFeb07BrvMh6nJLSB9l6zBsbCtwsT1tPCu2ZwyTcnJuB6cx 3953NaBGFU0SiA9/JhMb4Qia3fiKCi00ZnlBrFwTUAVJrLuMUYKY03DNw/OL83+J z4mleYDyMp8= Received: from pb-smtp1.int.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 9F6443EB2B; Thu, 5 Mar 2015 20:59:21 -0500 (EST) Received: from [192.168.145.105] (unknown [70.81.19.115]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 0C98C3EB2A; Thu, 5 Mar 2015 20:59:20 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: Date: Thu, 5 Mar 2015 20:59:20 -0500 Cc: "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: <90BFFFAC-10D7-499B-8B42-ABE1EB7DA065@seancoates.com> References: To: Yasuo Ohgaki X-Mailer: Apple Mail (2.2070.6) X-Pobox-Relay-ID: 67C67720-C3A4-11E4-AA52-29999F42C9D4-96568589!pb-smtp1.pobox.com Subject: Re: [PHP-DEV] Consistent function names From: sean@seancoates.com (Sean Coates) > If PHP has macro or userspace aliasing! > This is one possible solution for this. The engine has support for aliases. See = http://php.net/manual/en/internals2.ze1.zendapi.php If I thought this =E2=80=9Cconsistency=E2=80=9D was very important (I do = not, and I fully expect an RFC on this to fail if this thread ever gets = to that point), here=E2=80=99s what I would do: 1) map out the entire inconsistency, including existing function names = and parameter order, and new names + parameter orders 2) write a PHP extension that does a whole bunch of ZEND_FALIAS to = satisfy this new convention 3) attempt to get others to use this new conventions and the extension 4) once this extension has a few thousand, maybe tens of thousands of = users, bring the conversation back to Internals with some actual = evidence that this works and is wanted #1 will take a long time, and it will be lots of work #2 is likely very easy once #1 is done (generate the aliasing code) #3 and #4 are questionable at best, but at least after #2, you=E2=80=99ll = have your own unique consistency (if such a thing can exist) Until these things happen, I can=E2=80=99t see this gaining any real = support from any significant number of people with commit/merge access = (RFC voters). S