Re: [PHP-DEV] Sanitize filters

2022-10-03 Thread Vasilii Shpilchin
I believe we are still dIscussing about the sanitizing filters only. No doubt the filter API in general should be kept in the core as it provides functional access to input variables with the filter_input() function. The filter_input() is the only alternative to accessing superglobal arrays directl

Re: [PHP-DEV] Sanitize filters

2022-10-03 Thread David Gebler
On Mon, Oct 3, 2022 at 11:29 AM Max Semenik wrote: > > Is there a compelling need to have this in the core, as opposed to > Composer packages? The ecosystem has changed a lot since the original > function was introduced. > I don't know that there is, I suspect the answer is probably not and sani

Re: [PHP-DEV] Sanitize filters

2022-10-03 Thread juan carlos morales
My 2 cents on this. We should keep what is web related IMO. It does not make any sense to take things out, that later everyone will write by its own, or end up using a 3rd party package. PHP should have what is web related already to be use. Another different thing is the naming, the implementat

Re: [PHP-DEV] Re: Alias for `int|float`

2022-10-03 Thread Olle Härstedt
2022-10-03 19:56 GMT+02:00, juan carlos morales : > Very interesting > > But I think that the original suggestion had a slimer scope than the > rest of the opinions, that is why I also agree that the "scope" should > be defined clearly, and provide the examples needed to clarify the > suggestion it

Re: [PHP-DEV] Re: Alias for `int|float`

2022-10-03 Thread juan carlos morales
Very interesting But I think that the original suggestion had a slimer scope than the rest of the opinions, that is why I also agree that the "scope" should be defined clearly, and provide the examples needed to clarify the suggestion itself. Cheers -- PHP Internals - PHP Runtime Development Ma

Re: [PHP-DEV] Sanitize filters

2022-10-03 Thread Rowan Tommins
On 3 October 2022 11:29:40 BST, Max Semenik wrote: >пн, 3 окт. 2022 г., 03:18 David Gebler : > >> At a glance, I think all the examples mentioned in this thread have better >> existing alternatives already in core and could just be deprecated then >> removed. But it's worth asking, is that what we

Re: [PHP-DEV] Sanitize filters

2022-10-03 Thread Max Semenik
пн, 3 окт. 2022 г., 03:18 David Gebler : > At a glance, I think all the examples mentioned in this thread have better > existing alternatives already in core and could just be deprecated then > removed. But it's worth asking, is that what we're talking about here, or > is there a suggestion of rep