Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126299 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id E54A01A00BC for ; Wed, 5 Feb 2025 16:43:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738773664; bh=ssXps5x8fU8nreDRNDhFVYG5R3fM3JNr6RnsHSYX3eI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ATVn+cXxAG0WEgI822KZR+LJnOJUFVfx0P4X1xQvIhNYIq0k8CnZcloWNf9g3qxwf yBU2NG9QbaUB0gkHaz7nXwIhd1eaq20dVSG1V4EF9jJzvb0QT5Q/0mv1Rft2IV5hzi XUgp/NILMcAaRsNOzyooY0KVSad5fsc8+KeVQ50kNCqsHakmjG4wdJIdzlj+1Aj0ap ZULxZ+MpNClJUrhlSQsZy24mti61N0az67f8Th479/esUZ/azAM/CW5DNDFF/Xh9tV EsHx+7JdoT1gbbVUJf1rRl9xnkxxOw4tSopbM4Mz4KQl7bqtvvJZuxnStqVb6hA1fx HFU3HGsiOZ+bg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 48FFF180079 for ; Wed, 5 Feb 2025 16:41:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,DMARC_NONE, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-oa1-f48.google.com (mail-oa1-f48.google.com [209.85.160.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 5 Feb 2025 16:41:02 +0000 (UTC) Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-29fae583cc8so581867fac.1 for ; Wed, 05 Feb 2025 08:43:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738773828; x=1739378628; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2phSmFVq8pUj+25TW0XZ+2uml+TvZHIBdRuy/Vdpv3I=; b=ZVZDSH87RcAmm2WykAlkl1qZEIs/q8pw6Ws2uzgzKKxW/K9cTYXir4acdXfZVWB6RE dtis4feV3KRrPbBZCZdNlyFt+IJ25HOlta1CtX26q5Sv1aV/zSgouiBTbzY7y7g1uXDP VGDBe3SBtYZdxbhT+7RpYnLscch2lhB7ZobbVVMKurrZ/vmCXMJz20gZlD6FEhNyR+kf a9GOhtbh4x8dE1y+854oIKTroSZi9pqZchBrgNIPYCrRCR+Wk3zxahEoNKujHYmSUcoq ETaEp392NpQ+xDN2l9bYBaCq1ccJIYuNVtQ85567IeejGWrWEyfd9pLkB0rpdHs8c/i5 W/9w== X-Gm-Message-State: AOJu0YzCA4UGgFmbx4RiQsU368HNsaqBZ8SYZLXticIXnlS0pQIWpcF0 /TWPRuENI86oUubvlzH84sq7ZXCv/XVMQYtASb11sSoFSS2U0A0FGOIWQVkLxmZeF9y9T4l/q7v iZRAd78EvfdBJ2DH3Po3y7qyg+Y8= X-Gm-Gg: ASbGncuvU6lbrXKQON565xQ3CirWBYxQLFqj3j5A7B2hhpg/0sBL88kwDqWLFby8LIu ilYchFKRC6WM+dGhxQT2a1UNKbTKJ+nux4EnP3u6vvELzjgisWKX8wmXtljgz0qH8E64Z5VMi X-Google-Smtp-Source: AGHT+IFYK0cUPJuXBTjs+n7Y5PslyPGndhJsKMC/lBhNvTBt/vu+P3Z6v6O4RspkaMu0daKP3mL/HKXOKoLH4Oztjew= X-Received: by 2002:a05:6870:6386:b0:29e:5152:dab1 with SMTP id 586e51a60fabf-2b81db73415mr104757fac.13.1738773827851; Wed, 05 Feb 2025 08:43:47 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 5 Feb 2025 17:43:36 +0100 X-Gm-Features: AWEUYZn_UOen1H1x5wgHV1JlF663RdzYhgktW6cucqrVJPCUNoj8IAHZuBaIKEg Message-ID: Subject: Re: [PHP-DEV] Deprecate filter_input() or not? To: "Christoph M. Becker" Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000005a9fca062d67d481" From: bukka@php.net (Jakub Zelenka) --0000000000005a9fca062d67d481 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Wed, Feb 5, 2025 at 2:15=E2=80=AFPM Christoph M. Becker wrote: > Hi all! > > There is some discussion on a recent bug report[1] about filter_input() > and related functionality. The bug report had been closed, because this > functionality has already been added to the general deprecation RFC for > PHP 8.5[2]. Then the OP raised a point regarding the usefulness of > filter_input() to get at the original input, to avoid working with > possibly modified superglobals. > > It was actually closed because of misunderstanding of the requested envs that are supplied by SAPI. So it's now re-open. We should also never close anything because it got to the drafted deprecation list. It can be closed only if it really gets deprecated. > In my opinion, this topic should be discussed here, and not in a bug > report. So, has anybody thoughts about the filter_input() deprecation? > > I don't think we should deprecate it. It's used in many applications. Cheers Jakub --0000000000005a9fca062d67d481 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Wed, Feb 5, 2025 at 2:15= =E2=80=AFPM Christoph M. Becker <cm= becker69@gmx.de> wrote:
Hi all!

There is some discussion on a recent bug report[1] about filter_input()
and related functionality.=C2=A0 The bug report had been closed, because th= is
functionality has already been added to the general deprecation RFC for
PHP 8.5[2].=C2=A0 Then the OP raised a point regarding the usefulness of filter_input() to get at the original input, to avoid working with
possibly modified superglobals.


It was actually closed because of misu= nderstanding of the requested envs that are supplied by SAPI. So it's n= ow re-open. We should also never close anything because it got to the draft= ed deprecation list. It can be closed only if it really gets deprecated.
=C2=A0
In my opinion, this topic should be discussed here, and not in a bug
report.=C2=A0 So, has anybody thoughts about the filter_input() deprecation= ?


I don't think we should depre= cate it. It's used in many applications.

Cheer= s

Jakub
--0000000000005a9fca062d67d481--