Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80900 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78593 invoked from network); 20 Jan 2015 20:57:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2015 20:57:41 -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.207 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.207 imap2-2.ox.privateemail.com Received: from [192.64.116.207] ([192.64.116.207:43696] helo=imap2-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/D5-49046-441CEB45 for ; Tue, 20 Jan 2015 15:57:40 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 930B78C0069; Tue, 20 Jan 2015 15:57:37 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eqllqXxHzQ76; Tue, 20 Jan 2015 15:57:37 -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 BC1738C0009; Tue, 20 Jan 2015 15:57:36 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <54BEC072.5000507@mabe.berlin> Date: Tue, 20 Jan 2015 20:57:33 +0000 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <6ACECC07-52FE-46A5-B4F7-D0EEAED98992@ajf.me> References: <54BEC072.5000507@mabe.berlin> To: Marc Bennewitz 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 Marc, > On 20 Jan 2015, at 20:54, Marc Bennewitz wrote: >=20 > 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 ? I think it=E2=80=99d make sense if it was supported for normal variable = function calls. It=E2=80=99s the most intuitive behaviour. Thanks. -- Andrea Faulds http://ajf.me/