Re: Deprecate filter_input() or not?
| From: | Kamil Tekiela | Date: | Wed, 05 Feb 2025 13:48:43 +0000 |
| Subject: | Re: Deprecate filter_input() or not? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126298@lists.php.net to get a copy of this message | ||
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.