Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102617 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22521 invoked from network); 5 Jul 2018 20:42:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jul 2018 20:42:23 -0000 Authentication-Results: pb1.pair.com header.from=kalle@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.48 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.218.48 mail-oi0-f48.google.com Received: from [209.85.218.48] ([209.85.218.48:33919] helo=mail-oi0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/17-55607-DA28E3B5 for ; Thu, 05 Jul 2018 16:42:21 -0400 Received: by mail-oi0-f48.google.com with SMTP id 13-v6so19430491ois.1 for ; Thu, 05 Jul 2018 13:42:21 -0700 (PDT) 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=ahiX2ZCRO2Mu4Dc8BicZG2vbTeujqoPvwpZIkrovV3U=; b=Uyqddc26XeoQ7YiLEW12+bucMzXO4iiSn20WsoTBrxbfigNvfKtIFq6cDI/NeS3wh0 oT4ZFguO07JP7GfybRS02Wil4K1wGH2J6jE3aXYEVQMJGwZS4XmBMb9T5ufo9EDcNn3W 2/j3BPFvxnxnjbFFBUvivDCbdc0W31GhA4QFFJrNTgH6F6+QaJJjg5ePAdEV3XCgV47+ 1AFQoLym8pKFP0RwbGzOjj29otjP/q6lRSVf3nB5tI/K/X+6XFQdRqkk6YWgs90kE7Mm PVWLoKkYvP8wtgGAR4KmWVAGqtIPk432vRersz9tFBVNhMAwx5pl3itNNV86zMx7kPNr m8Vg== X-Gm-Message-State: APt69E1pzP3VKGVbi8EmpUpWVp/BJPOlvlIaDGUPINc+4aMBQzXQIKqL sv9Nh8zy9yiCH+qTdLGngtuBBUtzxxAMFWbHQBU= X-Google-Smtp-Source: AAOMgpeRrTIQ9XfHwQ4IG9nGEKeavck5GUhTCIrow737Kph9Tf8Cvgosa4BuVQWExXQYZDgttOd1RSEzH7gVWgBweZU= X-Received: by 2002:aca:4083:: with SMTP id n125-v6mr9083452oia.167.1530823338731; Thu, 05 Jul 2018 13:42:18 -0700 (PDT) MIME-Version: 1.0 References: <5153610d-abed-b21a-ec55-56d967128cae@gmail.com> In-Reply-To: <5153610d-abed-b21a-ec55-56d967128cae@gmail.com> Date: Thu, 5 Jul 2018 22:42:08 +0200 Message-ID: To: Stas Malyshev Cc: Nikita Popov , Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 7.3 From: kalle@php.net (Kalle Sommer Nielsen) Den tor. 5. jul. 2018 kl. 22.22 skrev Stanislav Malyshev : > > 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). -- regards, Kalle Sommer Nielsen kalle@php.net