Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102619 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25229 invoked from network); 5 Jul 2018 20:46:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jul 2018 20:46:54 -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.223.176 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.223.176 mail-io0-f176.google.com Received: from [209.85.223.176] ([209.85.223.176:38791] helo=mail-io0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/B7-55607-BB38E3B5 for ; Thu, 05 Jul 2018 16:46:54 -0400 Received: by mail-io0-f176.google.com with SMTP id v26-v6so8960312iog.5 for ; Thu, 05 Jul 2018 13:46:51 -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=SqeJE4NkWiNKDz2onfVPCZ9Qb8lwgw27BeoRM0hGiy0=; b=dI1UYpJjjPTMENudj4/cjtOMDp/79cdx/urhmctcLZm6TdEnbq7wntFhaQEGYB7iXo lQEi26dukj143DCzA3wyaKxsUKiL0rDYJwQ+yRYcW5UtL8JJ05zQuRtO52VlZw/XBRsN vunDIZKC/GK3PtiZ7WyaKA++rHI/d3dpBSQZVMa1qO1q2evPIuVBNwZFiYTIx3PqydOT bG85y+I/HwZflDObcW0alXuI7icSrSvqx38h4AJl9qCjzBb1iauQBVm8OHQMjGUnANIb 9hYbGs9kO/sz4pwP/SVVhXmdIJx8WrQSTSni4EORTW7HRCm6f4n5ABGolqZM7ssHZh7t ShDw== 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=SqeJE4NkWiNKDz2onfVPCZ9Qb8lwgw27BeoRM0hGiy0=; b=dhcDSczkpQnA2HJB/f1Eo2wv10EbtOddwbSFgr9ZiJVERk/sctEk0fhXyFfDo7kLrB CTABd7yuBsbhqafzgXkQuJIIvrbcAhcVvYEIJ5lLj5vV+tRuBSh9CDZv/nYlj16Wb6Oz Q3FSYSCk0fdsjbKtXMp+jp0HDtwDZ6SmA5BOF8hEzJtfD6l4Qjkb5SGXv7JdG2p3p8j6 dJ9VMugFvzZ+ziNxim7jFW+tFouCqF0Oas59+upbNV58B1PF1zTY/FEQBWuDTgBwuANS EGla1jB55v2bPn6a4LPFWrYPzOMXL/l0BY+Cm9z7r6Y20nm1g2H2nT4/GlN/JHy6wJnC W3bg== X-Gm-Message-State: AOUpUlEPR4hekxVl3g9q9PNN+/PVDKBQggSyH7/Lzmol6GC0pu1mrF9Q XpodkPThhTyvVi6sY+xAqfcb+1HVeuVSCHpJbSUMlA== X-Google-Smtp-Source: AAOMgpftnmDlzdQX3DduyfyNDFZLYU2cxNVvp5Qkl6ax+6PgGoLtx+jE8F0YfQu0QfPAY/iWa+Exqa1YzkCoccd4afY= X-Received: by 2002:a5e:8d07:: with SMTP id m7-v6mr6157768ioj.258.1530823609472; Thu, 05 Jul 2018 13:46:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:148a:0:0:0:0:0 with HTTP; Thu, 5 Jul 2018 13:46:48 -0700 (PDT) In-Reply-To: References: <5153610d-abed-b21a-ec55-56d967128cae@gmail.com> Date: Thu, 5 Jul 2018 22:46:48 +0200 Message-ID: To: Kalle Sommer Nielsen Cc: Stas Malyshev , Internals Content-Type: multipart/alternative; boundary="00000000000074db09057046a5ac" Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 7.3 From: nikita.ppv@gmail.com (Nikita Popov) --00000000000074db09057046a5ac Content-Type: text/plain; charset="UTF-8" On Thu, Jul 5, 2018 at 10:42 PM, Kalle Sommer Nielsen wrote: > Den tor. 5. jul. 2018 kl. 22.22 skrev Stanislav Malyshev < > smalyshev@gmail.com>: > > > > Hi! > > > > > After looking into this, I think that FILTER_SANITIZE_MAGIC_QUOTES may > be a > > > legitimate filter, which just has a bad name. Next to other filters > that > > > perform htmlspecialchars and urlencode, it makes sense that there is > also a > > > filter that performs addslashes. Maybe we should just rename this > filter to > > > something which is not tainted by the "magic quotes" terminology? > > > > Makes sense. There's nothing specially evil in addslashes if used in > > appropriate context. Also, for those that are newer to PHP, "magic > > quotes" means very little. So it's a bad name from various perspectives. > > Having something like FILTER_SANITIZE_ADD_SLASHES would be fine. > > Thinking some more about it, I kinda agree with the sentiment and I > think a rename is much better as it doesn't really hurt. We could add > an alias constant instead and provoke an E_DEPRECATED if the old one > is used (given we don't give the filter the same numeric value). > 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. Nikita --00000000000074db09057046a5ac--