Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86883 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31919 invoked from network); 25 Jun 2015 19:48:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2015 19:48:59 -0000 Authentication-Results: pb1.pair.com header.from=aaron@icicle.io; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=aaron@icicle.io; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain icicle.io designates 199.38.81.6 as permitted sender) X-PHP-List-Original-Sender: aaron@icicle.io X-Host-Fingerprint: 199.38.81.6 mercury.negativeion.net Received: from [199.38.81.6] ([199.38.81.6:65365] helo=mercury.negativeion.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/71-24641-A2B5C855 for ; Thu, 25 Jun 2015 15:48:59 -0400 Received: from localhost (localhost [127.0.0.1]) by mercury.negativeion.net (Postfix) with ESMTP id 30B6E271BA65; Thu, 25 Jun 2015 15:48:55 -0400 (EDT) X-Virus-Scanned: amavisd-new at negativeion.net Received: from mercury.negativeion.net ([127.0.0.1]) by localhost (mercury.negativeion.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MnZNX9duMYtj; Thu, 25 Jun 2015 15:48:54 -0400 (EDT) Received: from mars.local (unknown [173.225.158.77]) by mercury.negativeion.net (Postfix) with ESMTPSA id 4B486271BA4E; Thu, 25 Jun 2015 15:48:54 -0400 (EDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_F1AD7672-14E7-4546-95E5-75A0CF7F27F8" Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) In-Reply-To: <558C58E9.9010008@mabe.berlin> Date: Thu, 25 Jun 2015 14:48:52 -0500 Cc: internals@lists.php.net Message-ID: <8078246D-54BB-4D83-ADFC-47EA17929B25@icicle.io> References: <558C51CA.9080905@mabe.berlin> <558C5705.9040604@gmx.de> <558C58E9.9010008@mabe.berlin> To: Marc Bennewitz X-Mailer: Apple Mail (2.2098) Subject: Re: [PHP-DEV] Headsup: PHP7 feature freeze From: aaron@icicle.io (Aaron Piotrowski) --Apple-Mail=_F1AD7672-14E7-4546-95E5-75A0CF7F27F8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 25, 2015, at 2:39 PM, Marc Bennewitz wrote: >=20 > Nice to see this - didn't noted it in the last month :) >=20 > But there is one edge case that is not handled by PHP-7 at current = behavior; > http://3v4l.org/HkRQ7 >=20 > class Foo { > public static function __callStatic($m, $args) { > var_dump($m); > } > public function __call($m, $args) { > var_dump($m); > } > } >=20 > $callable =3D [new Foo, '']; > $callable(); // string(0) "" >=20 > $callable =3D 'Foo::'; > $callable(); // Fatal error: Uncaught Error: Call to undefined = function Foo::() >=20 > This behavior is inconsistent! >=20 > Thanks > Marc >=20 Interesting, I didn=E2=80=99t consider that an empty method name should = invoke __callStatic(). I=E2=80=99ll look into fixing this sometime today or = tomorrow. Thanks, Aaron Piotrowski= --Apple-Mail=_F1AD7672-14E7-4546-95E5-75A0CF7F27F8--