Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77935 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45594 invoked from network); 13 Oct 2014 18:55:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Oct 2014 18:55:49 -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.216.45 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.216.45 mail-qa0-f45.google.com Received: from [209.85.216.45] ([209.85.216.45:58207] helo=mail-qa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/02-32407-4302C345 for ; Mon, 13 Oct 2014 14:55:48 -0400 Received: by mail-qa0-f45.google.com with SMTP id s7so4747073qap.4 for ; Mon, 13 Oct 2014 11:55:45 -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=rtUd1j/tzBsYicuCHfqvZXmuNj6faK3iiaYFCqCUa9E=; b=sIzNixTCY4hb+hxaomo6TArEFoPXGgjLwgMCDSPV6/efjGa5FOBLahCDmVyFJOaQPP 8SP8lXRY6RBmhekTZraT6ahoTfqK988XYkbD3AzIul80kluyFR8t4pFo0juYIN1k34Z8 vlDKT2ifwTh2x5m/CVJ32q932s/FIjzbQcOr0PoI4n697LBpPjY3a94S9wQC6Q8kBeQe pPApWhsMxMH/tTYIlezncYP+Im1yibggGdGSpzs91Hi2AP9ldT8fG+mW1KhBHyV5Ascb J5EZoiUjj+t9yT2eNqxmfMzNAl2DQh3+UdX5rTg3bK6JfZZi4vVB5FsJTV4dd43wn80i u82A== X-Received: by 10.140.88.199 with SMTP id t65mr9627qgd.35.1413226545457; Mon, 13 Oct 2014 11:55:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.97.139 with HTTP; Mon, 13 Oct 2014 11:55:25 -0700 (PDT) In-Reply-To: <543C1E5A.7040405@sugarcrm.com> References: <543C1E5A.7040405@sugarcrm.com> Date: Mon, 13 Oct 2014 20:55:25 +0200 Message-ID: To: Stas Malyshev Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a11c133703ae348050552724d Subject: Re: [PHP-DEV] Deprecation of func_get_args(), call_user_func_array() and related API From: ocramius@gmail.com (Marco Pivetta) --001a11c133703ae348050552724d Content-Type: text/plain; charset=UTF-8 On 13 October 2014 20:47, Stas Malyshev wrote: > Yes, we can rewrite these functions in userland. So we can may others. > The long standing tradition of PHP in this area is to go the extra mile > for the user and actually provide helpful functions My point is that providing them as "userland implementation" even inside core would be more interesting than having something magic going on under the hood. Yes, I realize that complete removal would completely kill PHP's adoption for the next version, so I'm thinking about something like an ini setting: "zeh_legacy_includeh = '/zeh/path/to/old/functions.php';" Stupid idea? Security implications? And of course "yet another ini setting". Yet this would allow removing a lot of internal functions that were written just for the sake of it, and move them to something that can be maintained by a larger userbase. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --001a11c133703ae348050552724d--