Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106175 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42565 invoked from network); 8 Jul 2019 16:55:40 -0000 Received: from unknown (HELO mail-lj1-f180.google.com) (209.85.208.180) by pb1.pair.com with SMTP; 8 Jul 2019 16:55:40 -0000 Received: by mail-lj1-f180.google.com with SMTP id v24so16075946ljg.13 for ; Mon, 08 Jul 2019 07:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H25Zwng30ujsLxpSDms8YqUbbmOyNhU6eVzMUZfguwM=; b=JlbtY3OSAe1xuEYPCVwFINE+k+23jFchOgaEkmJsAIc9jkd47iqqnGQDK1qnUyUfMq OXLoXeb70gMk2GOT2TJo7GwyRe3crcll96jS88eNsrxfVWKbRGUWPnqnGz3iha6qPUjI CjHgDnyQtpQbdCfjoNUTPndMBpUNzrlOFCjF09UosVpPYWTqvx0Ep8ScO7sUDY0hJ2ek 0o+TmoXSwtqeRCo6Smrk7LQcZGv8Qd+cgQ08q/yetF8LhydrAddmssXwbRT5pTzjm9W+ R+ZawR0kDVbrWigXewcaG3i5x6Mxa2Qgpkx915aUqAZe9LAp5S9rzKwO/YW7rJiKMbgy 8M6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H25Zwng30ujsLxpSDms8YqUbbmOyNhU6eVzMUZfguwM=; b=tghLAuWpa0cltj1jgMaah83S7UVjY57PEMbZtB2E4a6P9AUPFFkcwKKCvi/caBC9M8 LRz6hQRdX2kdKVgblAMmkgL/hGgu8fbpGi/98lvtMhntJUosURNX23n48L/0oillTnDU SckuJ33KZXC+4ZNRoXAN61RD14Tgb4Xs9/7ZUq+HQyYEyXsb2COL81V7ZboZawB6P9Oe k7MMnHw3nlIdJecv/uI6rxiRAGxoJFQxzOqMExzr8BGCv1Be1N0FQuOBWCfxcfspMOsP fso1qfnwViKADcF0lf1rQAIE67Hz6cGaSbA2tGaOgZW+toLVb0IjFEMX+ll8fQ4daZzT ZMjQ== X-Gm-Message-State: APjAAAUJpqjENJjDAoS+QbUlHAxGqCp4+SoBo1uzGBvnNREKboUbptmf i2H4wOf9uxuECy2yfHJ1fIxhzgaAvTMbuVY3GD0= X-Google-Smtp-Source: APXvYqx7h0ra5FUBlnrDIbvbz+JjTb+nZWyYFHCz7EKxqrHLSy6gxMFDvo2wyJG6Pd8LkVPmTvCZR7HUiMWRy68Ak00= X-Received: by 2002:a2e:65ca:: with SMTP id e71mr7445783ljf.61.1562595304150; Mon, 08 Jul 2019 07:15:04 -0700 (PDT) MIME-Version: 1.0 References: <32BFA854-5FDB-4F56-941C-3B9F23D6D2E3@gmail.com> In-Reply-To: <32BFA854-5FDB-4F56-941C-3B9F23D6D2E3@gmail.com> Date: Mon, 8 Jul 2019 16:14:47 +0200 Message-ID: To: Claude Pache Cc: Kalle Sommer Nielsen , Internals Content-Type: multipart/alternative; boundary="000000000000083a12058d2c128f" Subject: Re: [PHP-DEV] [RFC] Deprecations for 7.4 From: nikita.ppv@gmail.com (Nikita Popov) --000000000000083a12058d2c128f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jul 8, 2019 at 3:41 PM Claude Pache wrote: > The deprecation RFC lists `apache_request_headers()`, because it is =E2= =80=9Can > Apache-specific name is also available in other SAPIs, even though it is > also available under the SAPI-independent name getallheaders()=E2=80=9D. > > Have you ever thought about making a more thorough and consistent change > with other similar functions, instead of just picking one particular > function because it is the only one in its category that has a documented > alias? In five minutes, I=E2=80=99m thinking of the following obvious thi= ngs: > > * using a less ambiguous name than `getallheaders()`, given the existence > of both `apache_request_headers()` and `apache_response_headers()`; > > * renaming all `apache_*()` functions that are available in other SAPI > into a SAPI-independent name; > > * treating all `nsapi_*()` functions as well. > Thanks for bringing this up. I agree with you, and have dropped apache_request_headers() from this RFC. This clearly needs a more comprehensive change. Note that nsapi no longer exists since PHP 7, but litespeed also has its own variation of these functions as well. Nikita --000000000000083a12058d2c128f--