Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76173 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57973 invoked from network); 27 Jul 2014 00:57:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jul 2014 00:57:09 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:33684] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/B8-22380-46E44D35 for ; Sat, 26 Jul 2014 20:57:08 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id AA7A0B00085; Sat, 26 Jul 2014 20:57:14 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wrRUX3hM3-YI; Sat, 26 Jul 2014 20:57:14 -0400 (EDT) Received: from [192.168.0.15] (unknown [90.210.122.167]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id BC0D3B0007B; Sat, 26 Jul 2014 20:57:10 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: Date: Sun, 27 Jul 2014 01:57:06 +0100 Cc: Zeev Suraski , Yasuo Ohgaki , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <8D517F8E-C62D-41A1-8531-F35833CAC9C9@ajf.me> References: To: Kris Craig X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] RFC: Move phpng to master From: ajf@ajf.me (Andrea Faulds) On 27 Jul 2014, at 01:53, Kris Craig wrote: > so func_get_arg() and func_get_args() will return current value of = argument > instead of the actually passed. The following code is going to be = affected > =93function foo($x) { $x =3D 2; return func_get_arg(0);} = var_dump(foo(1));=94 Those are to be considered functions, not language features. >>=20 >> Function parameters with duplicate name are not allowed anymore. > Definitions like =93function foo($x,$x) {}=94 will lead to compile = time error > =93Redefinition of parameter=94 While that=92s *technically* a language change, such code doesn=92t work = properly anyway. -- Andrea Faulds http://ajf.me/