Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80903 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84687 invoked from network); 20 Jan 2015 21:21:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2015 21:21:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.180 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.180 mail-ob0-f180.google.com Received: from [209.85.214.180] ([209.85.214.180:36382] helo=mail-ob0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/17-49046-BB6CEB45 for ; Tue, 20 Jan 2015 16:20:59 -0500 Received: by mail-ob0-f180.google.com with SMTP id uz6so21072688obc.11 for ; Tue, 20 Jan 2015 13:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=sN0j2J/vD5pKOsNRcVjLoBkL1JWuLKe9wMAuoLnvFF4=; b=VSetYJLuzmsuFqH/mTcOjF3H0DfhED5sfCTHbydxHXTheG3LQtyOnpSQLmWPZbSE1N ZAsPaP7CHccNQ8HO18ORDfI3yuc164o0sVO5Fdizk5HdDJBbljCT0q94KZuOMOoXQ83C liH5AUsyh7y3YAkvgHI2R466af/tpixX+M2C49kGC1z2lStuKBrwhEdPjK1Z+rMnn4LR aSLTP1q5LRT1Z1RS3gZVipikQWcsOcO0631d9sxp7ruRF0d0TT5583LOmU6NPWXO83+3 KcgzJIGL3Wg8Yky7JRv2VfuTNwsFz4brFVB0yAzCEHvfHIarVYsUjlGtXbt/f4kvvYLt S9dw== MIME-Version: 1.0 X-Received: by 10.182.199.70 with SMTP id ji6mr22493025obc.3.1421788856345; Tue, 20 Jan 2015 13:20:56 -0800 (PST) Sender: morrison.levi@gmail.com Received: by 10.76.103.101 with HTTP; Tue, 20 Jan 2015 13:20:56 -0800 (PST) In-Reply-To: References: <54BEC072.5000507@mabe.berlin> Date: Tue, 20 Jan 2015 14:20:56 -0700 X-Google-Sender-Auth: CfX3sMF0xvtQFDBFVxxn-JYvNfM Message-ID: To: Adam Harvey Cc: Marc Bennewitz , PHP internals , julien pauli Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Inconsistencies in callable, call_user_func and direct variable calls From: levim@php.net (Levi Morrison) On Tue, Jan 20, 2015 at 1:59 PM, Adam Harvey wrote: > 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" >> >> see http://3v4l.org/1oSO3 >> >> Thoughts ? > > This is https://bugs.php.net/bug.php?id=3D68475 =E2=80=94 Julien and I bo= th 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. If `is_callable($f)` returns `true` then it's a bug if you can't call it with `$f(...$args)`. That's my opinion anyway. I was actually made aware of this bug some time ago but whenever I intended to fix it I couldn't remember which case was the issue.