Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77936 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47906 invoked from network); 13 Oct 2014 19:18:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Oct 2014 19:18:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@mabe.berlin; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@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: php@mabe.berlin X-Host-Fingerprint: 80.237.132.167 wp160.webpack.hosteurope.de Received: from [80.237.132.167] ([80.237.132.167:45036] helo=wp160.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/62-32407-2852C345 for ; Mon, 13 Oct 2014 15:18:27 -0400 Received: from dslb-178-012-036-206.178.012.pools.vodafone-ip.de ([178.12.36.206] helo=[192.168.178.30]); authenticated by wp160.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1Xdl8R-000602-Bc; Mon, 13 Oct 2014 21:18:23 +0200 Message-ID: <543C257D.7040006@mabe.berlin> Date: Mon, 13 Oct 2014 21:18:21 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Marco Pivetta CC: PHP Internals List References: <5439B266.8070300@gmail.com> <543C1805.9000700@mabe.berlin> In-Reply-To: Content-Type: multipart/alternative; boundary="------------060309040708090401030504" X-bounce-key: webpack.hosteurope.de;php@mabe.berlin;1413227907;dbd274b4; Subject: Re: [PHP-DEV] Deprecation of func_get_args(), call_user_func_array() and related API From: php@mabe.berlin (Marc Bennewitz) --------------060309040708090401030504 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ > --------------060309040708090401030504--