Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126298 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 23B161A00BC for ; Wed, 5 Feb 2025 13:48:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738763171; bh=MCTHsEluFRDkKWG0NrprUR6Jc4S1emnAu7NeJImtefo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AHTlcoNW3gmKOHrRkJbWMG5whQfAatexN4PRmAAYuz5zq8HgLI/iV/HtfAIBp0m4q 0k0BtVEgt6h5wWzB82+5PMjfAWSW0+hkhsX78QpAs1Lz0WN3VWBmW6X9EKvvzX7WOo hyyBKO9ahJ70fpRNZWez2rUjfif5VLrcQXcyW5qe6Dz9Gg/DUhi+4i1ul+xdw6f6qy jMUKRKcz5Vkt7zG9+uonwDFYrxhQvAYT8UnDghH0ANuXqbFUxh40ttfb6o+J3WYC/8 9Rw5zTbYeFbtoz4/o+enYisxMLwDijtQgn/V/X+wXmKpl5KRvKNVdIhLCPy0O/lVDS u+aiBqWYclv6w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7C9B51801D9 for ; Wed, 5 Feb 2025 13:46:10 +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.9 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,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-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 13:46:10 +0000 (UTC) Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-540218726d5so6712286e87.2 for ; Wed, 05 Feb 2025 05:48:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738763334; x=1739368134; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MCTHsEluFRDkKWG0NrprUR6Jc4S1emnAu7NeJImtefo=; b=gSWxsMZMOlqtQ0/IWCFt1vIV1YXC/neDCuhhgPyG3jeMFNiGHNe4gdg+Pv9IdliiIi IQxdLNYcPutFTyeWG7U4Slo7lA85VPY/4Hp8kPY7QVVHWhENlXW/3VITdGJ3jmzwWgez Jk+rX9lsJLqOXo1ZBWYrwJmLthpUCOPyRREXPXXNvdNlM+FZ67DliIC3VtsgSPRkiuQm FgpS+7Ppb4s5yBzNRQd1o/Sfs7Q9h7yTE0RjQXeinrntNNWoftVVTNzeNpsltpfGpjII 7t85OSrdhI143PWdjh1J08huu+6G/3pVzUwF4LfhqqGBBWFD41iOpIfd+S8ekuuSf9cK l+nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738763334; x=1739368134; 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=MCTHsEluFRDkKWG0NrprUR6Jc4S1emnAu7NeJImtefo=; b=lTo3qUofxiGhfEbJ7rP3bav1Ocr3hlVKSrEthPIqTGFKfecqpqk9eZtw78CH12TlOR mAFo1jtoQP8xmt+WdWiAxBUp0OTJsAlGHQNQGEvLRTwTfsAwq213pPFvSehCojoRgTaG cXc4VHgi20QyTaS/O0XJAAigfRDGq0P+1BHdrC2JvqAI8qZvY58wmkiMnJZtDhPcW5kn xOMZcmdZ4Rvx4GH7GmUPNELf8VuLHyC/C6tBAlG7vnCYsNKhs1tzPk2NsLw2+229Vb1H jNg63hbZlDHoQ2U5O+upI4w8hF2EJNenFohB7Mb/MOv3LMU5WuVSmqc4GAraBSyKayr8 f6mQ== X-Gm-Message-State: AOJu0Ywi2qjJr+GqCvXCHynHdlCTFndxT4xqswRgUZKt8wuwq1D9IAYg oXGpjFe/8qIsN9terDGKXu7hUihtcOU83Yf85oEj5VEBCcRyiJamOK5dHHwk/Okpjn+H3/U/B1U c1VIl89Kat7ApBM6kasMrwwiKD3A= X-Gm-Gg: ASbGncsEc5b7ssURQqug5B2DcoUiC4uFML2ifnAqWGrURaYKMIgAlnUOmVHs/xYHsAU vd+ByJ9V5g1c1+Lh9qY/2v+Qpl/hSrVcKIOu0bQTEZFjUcipH/AkadrkL3A4lj91ZwU7HxEbt X-Google-Smtp-Source: AGHT+IFJGFMxbPA9ATI+eioyHesHhZvVIzueu3k4oA9BKEfsY+V4haQrRPUftw2wLrwsoav/7qrwOH1aisKPtSQxhE4= X-Received: by 2002:a05:6512:3d1b:b0:543:e4a3:7c41 with SMTP id 2adb3069b0e04-54405a1cd04mr782157e87.29.1738763333827; Wed, 05 Feb 2025 05:48:53 -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 13:48:43 +0000 X-Gm-Features: AWEUYZloIim9mZlEhG-VJxv50z2EdFVDn4y8xX8n6ZiiJbnioO4Myk9h8oSEIrs Message-ID: Subject: Re: [PHP-DEV] Deprecate filter_input() or not? To: "Christoph M. Becker" Cc: PHP Internals Content-Type: text/plain; charset="UTF-8" From: tekiela246@gmail.com (Kamil Tekiela) While the filter API wasn't designed with this in mind, the use of filter_input to get the unmodified data is probably the only good reason to ever use this API. If possible, it would be better to have dedicated functions in standard for reading the unmodified input data and then deprecate this function. I wouldn't even mind unbundling the whole filter extension.