Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102650 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30342 invoked from network); 8 Jul 2018 21:18:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2018 21:18:44 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.46 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.46 mail-it0-f46.google.com Received: from [209.85.214.46] ([209.85.214.46:56303] helo=mail-it0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/BB-55607-3BF724B5 for ; Sun, 08 Jul 2018 17:18:43 -0400 Received: by mail-it0-f46.google.com with SMTP id 16-v6so22804737itl.5 for ; Sun, 08 Jul 2018 14:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DRJzplRA62/UKIfQqgFif7Gye2zXsJO91f9kUf8gLWY=; b=tGWw0DrWE4qV9B85phL02XhjdrssLfU15ubsJkZX8lNtTBzVoRRlaQIxKODK1o341X BpYXkubHt4R5MLTkSj/cpMvQr8xGzsNxZPFJLtYfK3QDrKEmPaimBlWg0hB4zZ11n0o4 Hu3enMT4MtBc0zhpZLsngxY7Bt4xlPIg06YYEgFQ2LYf7mjvyUrVp4mjBzvrcP2/g8a6 YNoB7HFKu+kBKyaiJLJ0khLHnmd97tbvIhIs4csldt6SJjzr9pRypimp4EQm4SCSpyXJ wA5ocWLTCMJMhHQj6XMs8+cETnoYsGIDoUFvQxMVUKSN7kwtjW64b0pmZyQRBmrtWfFm RqNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DRJzplRA62/UKIfQqgFif7Gye2zXsJO91f9kUf8gLWY=; b=E72hMsGjW/CXLgwutMGutb+6136iDyOhSmbbK8CmhIf2FxyTb1iLXoYwspBJm7hgro CeS11EJ/TWJVsnyTjZJmYV5zisYPN/i9Hs+1ratn5eyQv+Yxy1SmNKPljh3M7w04s1tc GHBGcRE3682r6BiECnaBF+zYjfJ7teeThuksdmwrRSCgKe2pPxnnM5Rxn3aYmYsJA3fC WReph9ypqbeGr03kkDmepD/tXYBpuUSIOL1rbzdMFiB9QKDCkx4+PFbpbfXRVIRJtwYV RUxHEG6FDE44Et61HTZ5To/QznM4x4FtRVapQpB7XrKBuH0KACi+bHAcki2IWrWk8Kh5 p/Uw== X-Gm-Message-State: APt69E1y7UIVHj4EJNFbmkg0A99/HzNy4tUajozaPyN2NFDKNq7CDt0y MUx5mvXPB//Q8OESkFCjrqTRESn6TM1u3ETJt8g= X-Google-Smtp-Source: AAOMgpc8X+6DiXDUP9u4mhxi9jCb+6P6H+sV8+mP3duqMEF4vnBayaVfX9Y4kVsbKUztQM8qOR3comzYVx8QZsMPlUg= X-Received: by 2002:a24:c903:: with SMTP id h3-v6mr14420866itg.87.1531084720445; Sun, 08 Jul 2018 14:18:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:148a:0:0:0:0:0 with HTTP; Sun, 8 Jul 2018 14:18:39 -0700 (PDT) In-Reply-To: References: <5153610d-abed-b21a-ec55-56d967128cae@gmail.com> Date: Sun, 8 Jul 2018 23:18:39 +0200 Message-ID: To: Kalle Sommer Nielsen Cc: Internals Content-Type: multipart/alternative; boundary="000000000000e2216f05708370e2" Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 7.3 From: nikita.ppv@gmail.com (Nikita Popov) --000000000000e2216f05708370e2 Content-Type: text/plain; charset="UTF-8" On Fri, Jul 6, 2018 at 6:50 AM, Kalle Sommer Nielsen wrote: > Den tor. 5. jul. 2018 kl. 22.51 skrev Kalle Sommer Nielsen >: > > > > Den tor. 5. jul. 2018 kl. 22.46 skrev Nikita Popov >: > > > Sounds reasonable to me. My only question would be when we would start > emitting the deprecation notice. I'm not a fan of deprecating things in the > same release as the alternative is introduced, so I would suggest to add > the new alias in PHP 7.3 and perform the deprecation in PHP 7.4. > > > > I agree here, I don't think a simple constant would hurt too much to > > add outside the scope of this RFC so I will go ahead and do soonish > > that if no one else objects. Then we can move the section to the 7.4 > > Deprecation WIP RFC. > > I wrote a quick patch[1] for this (look away from the deprecation > warning), which basically adds a new alias 'add_slashes', this seemed > like the easiest way to go about it. While looking into ext/filter it > seems there are no implementations for INPUT_SESSION and > INPUT_REQUEST. I doubt there is any intention to implement these so > they could be potentials for adding a deprecation for (or simply > removal as they just yield an E_WARNING when used anyway)[2]. > > > [1] https://gist.github.com/KalleZ/cce52f230d599501373b15729ec85bfc > [2] https://git.php.net/?p=php-src.git;a=blob;f=ext/filter/filter.c;h= > 56c93199f0bf4f713eeb81c0dfddb910b02b9618;hb=HEAD#l547 > I assume that we're going forward with the addition of the alias, so I moved the FILTER_SANITIZE_MAGIC_QUOTES deprecation from the PHP 7.3 to the PHP 7.4 deprecations RFC. I'll start the vote on this RFC (and the case-insensitive constants RFC) tomorrow, with a duration of one week. I was holding off on these votes because earlier comments in the typed references RFC thread made it appear like a change to the release schedule was imminent, but as the RMs haven't made a final decision yet and I can't hold off these votes further, I'll have to keep them within the current schedule Nikita --000000000000e2216f05708370e2--