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.
- [PHP-DEV] Deprecate filter_input() or not? Christoph M. Becker
- Re: [PHP-DEV] Deprecate filter_input() or not? Rob Landers
- Re: [PHP-DEV] Deprecate filter_input() or not? Kamil Tekiela
- Re: [PHP-DEV] Deprecate filter_input() or not? Jakub Zelenka
- Re: [PHP-DEV] Deprecate filter_input() or not? Derick Rethans