Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77872 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17261 invoked from network); 11 Oct 2014 03:11:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Oct 2014 03:11:06 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.53 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.216.53 mail-qa0-f53.google.com Received: from [209.85.216.53] ([209.85.216.53:57257] helo=mail-qa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/57-06615-8CF98345 for ; Fri, 10 Oct 2014 23:11:05 -0400 Received: by mail-qa0-f53.google.com with SMTP id v10so2494004qac.12 for ; Fri, 10 Oct 2014 20:11:02 -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=Y423QtcsdMIQVQhHBCc4aOil55qUtrijW3OokRg5EjU=; b=jpV8O9mDgLUXxjYIAZ06QretR008r6+O8mxMQ+xGgNcRw1eNbbxzjUh6hzWxoK+T8U HMkSF5dlwVEKv47tR4xufJ9EmsEjRA9iiyLAlu/B2DDwyYRKzHdGbPQ8R5GKyCLLpJyE ETlvasVVd6rztSjjXhZPZLKjcPsApckPKgUNx0KRvNftnHEKbjL1QGNOc4H/Hmpij8eC 0qWIR8yCeca3hRV5ONERwA0z1I4+V72ZaL/OkeqCEaGg3rB0Hs2gptQwYDSwFv9pFKf/ 8BmeZ+WNV8KgrYQjOeTrNNR8Fq5wVHd5ewzykaSPfGerksIBJGB3Qsul5ySDlk38V7me JGjQ== X-Received: by 10.140.35.234 with SMTP id n97mr14497604qgn.11.1412997062358; Fri, 10 Oct 2014 20:11:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.97.139 with HTTP; Fri, 10 Oct 2014 20:10:42 -0700 (PDT) In-Reply-To: References: Date: Sat, 11 Oct 2014 05:10:42 +0200 Message-ID: To: Leigh Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a11c00a88f87f3805051d0396 Subject: Re: [PHP-DEV] Deprecation of func_get_args(), call_user_func_array() and related API From: ocramius@gmail.com (Marco Pivetta) --001a11c00a88f87f3805051d0396 Content-Type: text/plain; charset=UTF-8 On 11 October 2014 01:24, Leigh wrote: > > BC compatibility is easily achieved as variadics ( > > https://wiki.php.net/rfc/variadics) allow for writing cleaner and less > > complex versions: > > > > True. > > So can we make these functions behave as if variadics were used > without removing them? Something akin to making these functions > language constructs? > That would actually be worse, as it wouldn't be possible to pass them to methods with a `callable` hint or similars such as `array_map`. In general, I understand why there's a lot of fuss about BC compat here, but I don't see why providing them as separate file or using something like a "global include" is a problem. Is/would something like that (be) possible via ini setting? Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --001a11c00a88f87f3805051d0396--