Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80902 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81688 invoked from network); 20 Jan 2015 21:06:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2015 21:06:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.199 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.199 imap11-2.ox.privateemail.com Received: from [192.64.116.199] ([192.64.116.199:41062] helo=imap11-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/86-49046-953CEB45 for ; Tue, 20 Jan 2015 16:06:35 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 4C04B8800E5; Tue, 20 Jan 2015 16:06:31 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id r8GYWirDPRd0; Tue, 20 Jan 2015 16:06:31 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id A8E3F8800DB; Tue, 20 Jan 2015 16:06:29 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Tue, 20 Jan 2015 21:06:26 +0000 Cc: Marc Bennewitz , PHP internals , julien pauli Content-Transfer-Encoding: quoted-printable Message-ID: References: <54BEC072.5000507@mabe.berlin> To: Adam Harvey X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] Inconsistencies in callable, call_user_func and direct variable calls From: ajf@ajf.me (Andrea Faulds) Hey Adam, > On 20 Jan 2015, at 20:59, Adam Harvey wrote: >=20 > On 20 January 2015 at 12:54, Marc Bennewitz wrote: >> valid for call_user_func[_array] and callable type-hint but invalid = for for >> direct variable calls: >> - string "MyClass::staticFunc" >> - string "self::staticFunc" >> - string "static::staticFunc" >> - string "parent::func" >> - string "parent::staticFunc" >>=20 >> see http://3v4l.org/1oSO3 >>=20 >> Thoughts ? >=20 > This is https://bugs.php.net/bug.php?id=3D68475 =E2=80=94 Julien and I = both have > PoC branches implementing this, and agree that it should be fixed in > PHP 7, although I think we differ on whether an RFC is required or > not. It=E2=80=99s technically a 'language change=E2=80=99 and would affect = the language specification. That said, it seems rather =E2=80=9Cno-brainer= =E2=80=9D. -- Andrea Faulds http://ajf.me/