Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77939 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54885 invoked from network); 13 Oct 2014 20:26:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Oct 2014 20:26:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.52 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.192.52 mail-qg0-f52.google.com Received: from [209.85.192.52] ([209.85.192.52:35006] helo=mail-qg0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 53/93-32407-5853C345 for ; Mon, 13 Oct 2014 16:26:45 -0400 Received: by mail-qg0-f52.google.com with SMTP id q108so7197440qgd.25 for ; Mon, 13 Oct 2014 13:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=c7J4M8FybE5vP89J/YrxrjRBwJjbUiIFUmxmfVIv+Nk=; b=GFH2eFNVZQn5z412eNPzdjn4RUV50QXNmLb0cR+QG1Pmp1pd4XPWfBCp7XCkCB0ZIP zT4hw7zKp1QdvyWei6BlmrrlTeVBgkrS94xMMkM+Ju/RYg8M4vOa7l8wVBr8Ocezw4T5 9k1ogZRwYwwhF8eNObEoIwiqF8pIuMohJi9YJFnvQ7tEVL4Bkq+d3cH53dk8KWHPxH9l /hvtdo64FqspTktR+b6LJw6T21nOcXEnLYApUKrrLw3DvRlEK68yjVwxmrg5l3361ejv iNdSKpoTCEOieYB6K1LgLQAVgrEiQgTH4driyHweVFXfOgCubapR3m8B9k+rKvqrzcq5 GL/Q== X-Received: by 10.229.212.202 with SMTP id gt10mr1852928qcb.0.1413232002735; Mon, 13 Oct 2014 13:26:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.97.139 with HTTP; Mon, 13 Oct 2014 13:26:22 -0700 (PDT) In-Reply-To: <543C257D.7040006@mabe.berlin> References: <5439B266.8070300@gmail.com> <543C1805.9000700@mabe.berlin> <543C257D.7040006@mabe.berlin> Date: Mon, 13 Oct 2014 22:26:22 +0200 Message-ID: To: Marc Bennewitz Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a11337c9a82255a050553b790 Subject: Re: [PHP-DEV] Deprecation of func_get_args(), call_user_func_array() and related API From: ocramius@gmail.com (Marco Pivetta) --001a11337c9a82255a050553b790 Content-Type: text/plain; charset=UTF-8 On 13 October 2014 21:18, Marc Bennewitz wrote: > > On 13.10.2014 20:48, Marco Pivetta wrote: > > On 13 October 2014 20:20, Marc Bennewitz wrote: > >> >> On 13.10.2014 02:45, Marco Pivetta wrote: >> >> Your implementation of "userland_call_user_func" doesn't have the same >> visibility as "call_user_func[_array]": >> http://3v4l.org/lNgub > > > Interesting: this seems to show that it's even more magic than I > expected. > > Here's just a hacked-together example, just to show that it can be done > in userland as well (there may be better ways): http://3v4l.org/QuQM1#v560 > > Now you have the opposite issue - you are able to call private/protected > methods but you shouldn't: > http://3v4l.org/rgmh8#v560 > > Good catch, but I'm not trying to build a complete solution in a gist: if I do, then I'll just make a lib and include all existing `.phpt` tests related to `call_user_func`, no? :-) Just a revision of the userland version, for fun: http://3v4l.org/6IKKl#v560 Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --001a11337c9a82255a050553b790--