Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128031 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 lists.php.net (Postfix) with ESMTPS id C90DD1A00BC for ; Mon, 14 Jul 2025 11:13:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1752491516; bh=dVyDlx/x4MV1bIWYZqv43Psxqfe0Aa/xBbNAL/bnbWQ=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=fJIFQcUKL+r6v/dwRQaexG7rYDkmHFB6HPnlTdjuXuebT18sHec3xWJ888NLMZe17 ps0yAinN/B2nNgD/Y+SwxxLqqL1PJSfp7A4TIiPd4S8Fk+lqtpUimQ1YZRpGh16ZJD 9/ADGsI3mPlG8Wcl3CXblimXGW9TMrg4SuMwYWnZq67Vt5hBLKqaDT+bK3SJEZeEyM 0KaDQu0tAKwdkVtO3nJZdks7KcGiBUll43yxPxPpdgYRLuD3TFU974eqqPS+L3NP1J eMIf+C2wQ02VOTMjZ1uDMe3JNDzQj9xDcAy48uqEDk7fuAO40Y38KxOaFk+zwdYmBt TQaem/vIFMZtA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id ACC7C180039 for ; Mon, 14 Jul 2025 11:11:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) 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.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) 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 ; Mon, 14 Jul 2025 11:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1752491622; bh=dVyDlx/x4MV1bIWYZqv43Psxqfe0Aa/xBbNAL/bnbWQ=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=E2HeSzRVUmyVclhOR/6qIwv1wrQgZlWMs0MKxwibVTx+Pm2JnP01Ghx3CiitHitjp pbtHXIpp0DWEqku0BN73fPHX0Mc7X7LI267AEx7uijUse1WF1LvLwpt6l894fSJA4f kXw3sM72kIg/1FbgKt3v3lLOYyDFPB2tI5Q3UElXmvszseqLKSgbLpiVhMvjdxadpl GiGgYnrfHxaaoiZZlSJOmueqbxMIcbEkXfQrAvFFnetahl51xp3+knRkUGpIP2gUw0 jUA/P0ZABzWLav8mxut0o5FA1DCej76bYLGDyYxlWIS5Qrzn2b/ZnfFtib1we8QL6Q RQsQU/ae0Iclg== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 7622410C033; Mon, 14 Jul 2025 12:13:42 +0100 (BST) Date: Mon, 14 Jul 2025 12:13:42 +0100 (BST) To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= cc: "Gina P. Banyard" , PHP internals Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5 In-Reply-To: Message-ID: References: Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-952145540-1752491622=:52945" From: derick@php.net (Derick Rethans) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-952145540-1752491622=:52945 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 4 Jul 2025, Tim D=C3=BCsterhus wrote: > On 7/3/25 18:04, Derick Rethans wrote: > > > The intention behind the filter extension was that admins can set a=20 > > default filter for *all* data coming in through this=20 > > `filter.default` setting as a "safe" fallback. That could/should=20 > > probably even be a >=20 > Genuine question: Is that *intention* documented anywhere?=20 > https://www.php.net/manual/en/function.filter-input.php only makes=20 > factual statements about the behavior, but not how one is supposed to=20 > use them. Similarly=20 > https://www.php.net/manual/en/filter.configuration.php also says that=20 > a default filter can be configured, but not why one would want to do=20 > so. I've done a bit of archeology, and came up with the following: The SAPI API was designed in 2003: https://github.com/php/php-src/commit/7429c2dc3f72ed9a6a41ccefc68595e76319c= dae The extension started in PECL in 2005, and then was moved into the core=20 distribution: https://pecl.php.net/package/filter =E2=80=94 unfortunately i= t=20 seems that the history of the SVN repository was lost. There is some context in the mailing list archive: - https://externals.io/message/25728#25738 - https://externals.io/message/43721 - https://news-web.php.net/php.internals/23064 - https://news-web.php.net/php.internals/23627 There is a comment from Rasmus on why filter keeps the raw information in 2006: https://news-web.php.net/php.pecl.dev/4000 in 2014: https://news-web.php.net/php.internals/74371 cheers, Derick --=20 https://derickrethans.nl | https://xdebug.org | https://dram.io Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/suppo= rt mastodon: @derickr@phpc.social @xdebug@phpc.social --8323329-952145540-1752491622=:52945--