Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126328 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 9AA8B1A00BC for ; Fri, 7 Feb 2025 12:19:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738930618; bh=p5sQAuADhdcIRnx9pRP2VnMbi4UtU4vCV97h8ZsKmIs=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=gtZqMvTcfnNVV+uDrE6Y9gDwcd2o735g+iuqLnR1fw91Pcw2PVBHXyyMN8LnLstJX +OOo3OGkK3bBdlnlsLEkzLPadbajGuafkZId4EB5iX4+CAuz4mQlcx/mrNnrYL1x/L j8SIZpFZYbIcK83KrHdxcXTZXqO2VLiysrj75nbgch9gVxxuInz1CJX3DwO03ecEVB JOIX1wHtYNhQhDQFt5fLgQ/X8N0wUEvXmDTpoF3wyY3ub6+136eioF8Ga5rIIOI4dY TrziwPUheR0MbNeukyNEv/bghR6b0z2CXvVpzzqQmxoRd0/v1+fGQvk60zdZc2GveV bI5XPfZBZC+Hg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D07FE180079 for ; Fri, 7 Feb 2025 12:16:57 +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=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) (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 ; Fri, 7 Feb 2025 12:16:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738930781; bh=p5sQAuADhdcIRnx9pRP2VnMbi4UtU4vCV97h8ZsKmIs=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=CVt0/SMtc7ifbmv+47JxVerIeBlu1h9j+1oYYaeHw1HtTHOpF07Pp2E0OcVQUguKg /ah0xK+wV5wUvi8yJGlCThLu2bBUMGYh2ejcxABWdw/1BF5URkim3lHOlnYtFte6yq qimh+ckrT1+yQR6mCWC7gcYHC9fBzuAwLY8GkPrERMqpnvISMU+fmvj1+7XsbpGpp7 xODi4gVpxcadoGm0MB0Rh6vq0cNlJqpbG80mhNe8qOt+Gfvj9gaPXIpLMyzb0VWIwO XLD9gou30qMGvDAir9S4GuTUsOYrRYaropFmwjoZ3RfAQ/dOnX75S/stufoFqfR+ty XZka4nd4uS3Vw== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 11A1810C084; Fri, 07 Feb 2025 12:19:41 +0000 (GMT) Date: Fri, 7 Feb 2025 12:19:40 +0000 (GMT) To: "Christoph M. Becker" cc: PHP Internals Subject: Re: [PHP-DEV] Deprecate filter_input() or not? In-Reply-To: Message-ID: <44c2bdbf-8084-b813-c03c-73f2fdcb7bd4@php.net> References: Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII From: derick@php.net (Derick Rethans) On Wed, 5 Feb 2025, Christoph M. Becker wrote: > 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. > > 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 they need to be deprecated, just because it is "confusing". They were added specifically so that you could operate on the original raw data. cheers, Derick