Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80906 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91556 invoked from network); 20 Jan 2015 21:46:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2015 21:46:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.179 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 74.125.82.179 mail-we0-f179.google.com Received: from [74.125.82.179] ([74.125.82.179:48257] helo=mail-we0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/78-49046-DACCEB45 for ; Tue, 20 Jan 2015 16:46:21 -0500 Received: by mail-we0-f179.google.com with SMTP id q59so17098366wes.10 for ; Tue, 20 Jan 2015 13:46:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UiGzQEG8X/VYzFvIW8kbOnHyE4dBexp8BfgZ8JkqHyk=; b=REZ169pbgkRUN3gaEnPw/c2y5bWOA/gRmw+9ccVFHb3H+GqKTGwUorcnEwfV5R51JJ QwL+0l2B5/3VNnMoxZof1K2phA577fHW4paJCEVA/6C52Z8KxCl+Z5AXySh7qgJj8Lp6 ltIvGWoCGDeVfs6QFd5Q57yRFSTkVmNUMYXxELLaTl0bz5Z03IVoptnoiEGlcuiJYJqy PvLOBOtaNqM5A022QyP/EZKcYaB7c2ctDw7qszyh4eexZru3vyOIYoqgT5jhaCVAr0Ra 4ga5eEURt9H4eV2XGWyLN8f2vXfsUXagY9bD07mRKUkTIMJbFNIAVC0mgvVGp8OTmodq rOag== MIME-Version: 1.0 X-Received: by 10.180.10.9 with SMTP id e9mr17682430wib.36.1421790378463; Tue, 20 Jan 2015 13:46:18 -0800 (PST) Received: by 10.27.10.138 with HTTP; Tue, 20 Jan 2015 13:46:18 -0800 (PST) In-Reply-To: <54BEC072.5000507@mabe.berlin> References: <54BEC072.5000507@mabe.berlin> Date: Tue, 20 Jan 2015 22:46:18 +0100 Message-ID: To: Marc Bennewitz Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c26a3a741600050d1c5eb7 Subject: Re: [PHP-DEV] Inconsistencies in callable, call_user_func and direct variable calls From: nikita.ppv@gmail.com (Nikita Popov) --001a11c26a3a741600050d1c5eb7 Content-Type: text/plain; charset=UTF-8 On Tue, Jan 20, 2015 at 9:54 PM, 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 ? > I would prefer deprecating this alternative notation instead of adding more support for it. The [$class, $method] form is the canonical form we support everywhere and which is consistent with the [$obj, $method] callbacks. There's no point supporting another alternative notation, especially if it was effectively unusable for a while now already. Nikita --001a11c26a3a741600050d1c5eb7--