Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84422 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50785 invoked from network); 8 Mar 2015 01:26:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2015 01:26:00 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.178 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.214.178 mail-ob0-f178.google.com Received: from [209.85.214.178] ([209.85.214.178:45471] helo=mail-ob0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/60-48254-725ABF45 for ; Sat, 07 Mar 2015 20:25:59 -0500 Received: by obbnt9 with SMTP id nt9so2877328obb.12 for ; Sat, 07 Mar 2015 17:25: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:from:date:message-id :subject:to:cc:content-type; bh=hz+2oSFkxIjMZdjYLG/bOUgwzEC4HF92xlQIdekK/a4=; b=N0Kx/p/ziAOHNdy3fgw51SNA3kbsHPh+O8LkbEztQ3Yr346/h4HRH9a2W2n5v8SJgL bvNn4WHLz5Z22wBNsGyLMsDWHlBZEtIkEOXOKksXoW7LqLJLKmbpM5z4JcHjk2wXEMOY 0vKDhMlhpTFIuK97GCsJ2N85BLi1TR+acQ/iQH4BBXJSuvBwql95xK2XxG+iz8f3JWqo qstFSHxsRCeSfwbElMJFLCd6pJRMPpubf9RQGfCPBgQFRIfQu6Lrlh2/f+aOgjX+fJ+L Cp0+ptOkDgaqGt7ivOBhve6A5eFMf9HR0UuFkxqL3Y6AEoHYm8wO8XGk0Cm/7cj2UBY2 OK/Q== X-Received: by 10.202.23.201 with SMTP id 70mr15669257oix.130.1425777956581; Sat, 07 Mar 2015 17:25:56 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.202.58.2 with HTTP; Sat, 7 Mar 2015 17:25:16 -0800 (PST) In-Reply-To: <6805F3C6-E73F-4A00-A94A-FE38B7E6D90F@gmail.com> References: <54F83061.60108@seld.be> <54FB44EE.6000704@gmail.com> <6805F3C6-E73F-4A00-A94A-FE38B7E6D90F@gmail.com> Date: Sun, 8 Mar 2015 10:25:16 +0900 X-Google-Sender-Auth: pX9CPGf7ziL0yZVU6coIU4oyyHA Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113e33b0a1773f0510bcccb0 Subject: Re: [PHP-DEV] Re: [RFC] [DISCUSSION] Consistent Function Names From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113e33b0a1773f0510bcccb0 Content-Type: text/plain; charset=UTF-8 Hi Rowan, On Sun, Mar 8, 2015 at 8:31 AM, Rowan Collins wrote: > What? That's not the same thing at all. I'm pretty sure those functions > are deprecated *because* we have array callback forms, so you can use > call_user_func to call a method. > > PHP has a well-defined definition of "callable", as used by is_callable() > and function parameter typehints, and literally everywhere that wants a > callback. Since there's no such thing as a function or method pointer, that > definition includes a string identifying a plain function, and two array > forms, [string, string] and [object, string], representing static and > instance methods, respectively. You can't not accept those forms as a > callback parameter in one particular function just to make things tidier. > I should have written "Let deprecate _all_ array callbacks" by document and raise deprecate error in PHP7. Remove array callbacks in PHP 8. Makes sense? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113e33b0a1773f0510bcccb0--