Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103046 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56544 invoked from network); 6 Aug 2018 13:03:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Aug 2018 13:03:01 -0000 Authentication-Results: pb1.pair.com header.from=nicolas.grekas@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nicolas.grekas@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.43 as permitted sender) X-PHP-List-Original-Sender: nicolas.grekas@gmail.com X-Host-Fingerprint: 209.85.218.43 mail-oi0-f43.google.com Received: from [209.85.218.43] ([209.85.218.43:42230] helo=mail-oi0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/B5-26693-207486B5 for ; Mon, 06 Aug 2018 09:02:59 -0400 Received: by mail-oi0-f43.google.com with SMTP id b16-v6so8623793oic.9 for ; Mon, 06 Aug 2018 06:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to:cc; bh=M/mbXXkZXYDVwVKOqc5nIFoBhyj4YCZUfh2zCITTasE=; b=hFl+pv7xP6KjRLETdBWTzEQJSTmDry7PcxDQAL0cMUZxe3dcVLTOPTZbCruT0hiALo v3YCaesvvIYvhiE1eU6nhliQa1kNSvM/vNK6f+qy7FEtRCkc7CQHAhi9R4R9lbkEylu3 YJLy3qrMZP/DLkZL5Kug4+WGpJojDAaVtUaFqbp7Dro6OkkU2PWDBQN71V6OQmOw07t+ jlzl+K45PXOtyqrGIp4+BDVxlXyb1j0XajW5tvOXJ2uhspZ7TMOz/tqb14IogNP/0C7X 0xlIPL1OQ8MjsIxxpibGkpOzYopFl6iVE7fb1Jd6VqKcxrMfScC9NOCo9EdGtchw3y00 g/gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:cc; bh=M/mbXXkZXYDVwVKOqc5nIFoBhyj4YCZUfh2zCITTasE=; b=G8etcEJRq2mjRDIyRruuIfOCu7ZRZ4dZ1dZxKKyLYG6cbTBAYcq9hSbWev9GKDxLpJ RRxX7jIFlGT4BFxl/J2X2UWlOcfHl7tJKbLAVLgPZxyu0DqBzHA8RIdi6xPHjbXg+Ora 5suHRr+nF1WVvdy1Jpw2KF+d9uxnco7vKA5thQWgOAH15UHo9NB5VtukioaU7n7hrGC0 77Raw9goGcZusXBF8R/yeWKhv268XFgWnHd3p1FNRh4otcNlPml/qiqvi1QX3c8ldFPV C5X7cmDXi4GWaI0SR2m21dx8cTe3Z7xoYKVCyHCu/jYJVGw8iay86QALFeapUlF34/CQ eyLg== X-Gm-Message-State: AOUpUlFf2rYaLNjR1rXe3FPUpBw+2azZ95npcQZTdcA1Ui75xuyQAr+0 yAxleg/c93RA+95gp+wWfxoVB4R9aTwx3quXxg0= X-Google-Smtp-Source: AAOMgpf+DkKndK+8zt1gQWjE73/iTqBlq4ESkOiAS/kUlqcuUclX7EUhcFxTReNywNLLbnE4ANtnlqN8VfqoC3ceVF0= X-Received: by 2002:aca:42:: with SMTP id 63-v6mr13223459oia.154.1533560575661; Mon, 06 Aug 2018 06:02:55 -0700 (PDT) MIME-Version: 1.0 Sender: nicolas.grekas@gmail.com Received: by 2002:a4a:1e45:0:0:0:0:0 with HTTP; Mon, 6 Aug 2018 06:02:34 -0700 (PDT) Date: Mon, 6 Aug 2018 15:02:34 +0200 X-Google-Sender-Auth: 00fQZFLzI1NlJXw-AV-tYC-1b2o Message-ID: To: Kalle Sommer Nielsen , Nikita Popov Cc: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000005a9dd80572c3e557" Subject: Deprecations for PHP 7.4, preparing named args From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --0000000000005a9dd80572c3e557 Content-Type: text/plain; charset="UTF-8" Hello, I was reading https://wiki.php.net/rfc/named_params again. Named args would be great for 8.x. Following https://wiki.php.net/rfc/deprecations_php_7_4, would it make sense to deprecate calling `call_user_func_array` with associative arrays, so that it can be made to work with named args in 8.0? Another option would be to deprecate `call_user_func_array` altogether and recommend using the splat operator instead. WDYT? The named params RFC also tells about "Signature validation allows changing parameter names", adding a requirement to keep the same parameter name in child classes. Should this requirement be added to 7.4 with a deprecation notice? Are there other things we should deprecate to make room for named args? Just throwing the ideas so we don't forget considering them, thanks for reading. Nicolas --0000000000005a9dd80572c3e557--