Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86930 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52268 invoked from network); 28 Jun 2015 20:23:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2015 20:23:56 -0000 Authentication-Results: pb1.pair.com header.from=dev@mabe.berlin; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dev@mabe.berlin; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mabe.berlin from 80.237.132.167 cause and error) X-PHP-List-Original-Sender: dev@mabe.berlin X-Host-Fingerprint: 80.237.132.167 wp160.webpack.hosteurope.de Received: from [80.237.132.167] ([80.237.132.167:60188] helo=wp160.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B1/51-29555-BD750955 for ; Sun, 28 Jun 2015 16:23:55 -0400 Received: from dslb-178-012-027-130.178.012.pools.vodafone-ip.de ([178.12.27.130] helo=[192.168.178.46]); authenticated by wp160.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1Z9J7H-0003Kt-Mb; Sun, 28 Jun 2015 22:23:51 +0200 Message-ID: <559057D7.7000407@mabe.berlin> Date: Sun, 28 Jun 2015 22:23:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Christoph Becker , internals@lists.php.net CC: Aaron Piotrowski , Nikita Popov References: <558C51CA.9080905@mabe.berlin> <558C5705.9040604@gmx.de> <558C58E9.9010008@mabe.berlin> <8078246D-54BB-4D83-ADFC-47EA17929B25@icicle.io> <559044BD.2090905@mabe.berlin> <55904980.7020404@gmx.de> In-Reply-To: <55904980.7020404@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;dev@mabe.berlin;1435523035;99e20e4c; Subject: Re: [PHP-DEV] Headsup: PHP7 feature freeze From: dev@mabe.berlin (Marc Bennewitz) On 06/28/2015 09:22 PM, Christoph Becker wrote: > Marc Bennewitz wrote: > >> On 06/25/2015 09:48 PM, Aaron Piotrowski wrote: >>>> On Jun 25, 2015, at 2:39 PM, Marc Bennewitz >>> > wrote: >>>> >>>> Nice to see this - didn't noted it in the last month :) >>>> >>>> But there is one edge case that is not handled by PHP-7 at current >>>> behavior; >>>> http://3v4l.org/HkRQ7 >>>> >>>> class Foo { >>>> public static function __callStatic($m, $args) { >>>> var_dump($m); >>>> } >>>> public function __call($m, $args) { >>>> var_dump($m); >>>> } >>>> } >>>> >>>> $callable = [new Foo, '']; >>>> $callable(); // string(0) "" >>>> >>>> $callable = 'Foo::'; >>>> $callable(); // Fatal error: Uncaught Error: Call to undefined >>>> function Foo::() >>>> >>>> This behavior is inconsistent! >>>> >>>> Thanks >>>> Marc >>>> >>> Interesting, I didn’t consider that an empty method name should invoke >>> __callStatic(). I’ll look into fixing this sometime today or tomorrow. >> Is this edge case addressed now? >> My PR has been closed now where this edge case was addressed, too. > That is supposed to be addressed by > . > Can you please confirm with a recent master? (The Windows snapshots > currently in build progress are likely to have this commit included, too.) It's fixed now - Thanks! :)