Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40228 invoked from network); 28 Jun 2015 19:02:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2015 19:02:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=dev@mabe.berlin; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dev@mabe.berlin; 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:48791] helo=wp160.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/30-29555-1C440955 for ; Sun, 28 Jun 2015 15:02:26 -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 1Z9HqQ-0004SM-1m; Sun, 28 Jun 2015 21:02:22 +0200 Message-ID: <559044BD.2090905@mabe.berlin> Date: Sun, 28 Jun 2015 21:02:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: internals@lists.php.net CC: Aaron Piotrowski , Christoph Becker , Nikita Popov References: <558C51CA.9080905@mabe.berlin> <558C5705.9040604@gmx.de> <558C58E9.9010008@mabe.berlin> <8078246D-54BB-4D83-ADFC-47EA17929B25@icicle.io> In-Reply-To: <8078246D-54BB-4D83-ADFC-47EA17929B25@icicle.io> Content-Type: multipart/alternative; boundary="------------020800060406070700070002" X-bounce-key: webpack.hosteurope.de;dev@mabe.berlin;1435518146;a8cbb4c4; Subject: Re: [PHP-DEV] Headsup: PHP7 feature freeze From: dev@mabe.berlin (Marc Bennewitz) --------------020800060406070700070002 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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. > > Thanks, > Aaron Piotrowski Thanks Marc --------------020800060406070700070002--