Re: [PHP-DEV] Sanitize filters

2022-10-02 Thread David Gebler
On Sun, Oct 2, 2022 at 4:10 PM Larry Garfield wrote: > The filter extension has always been a stillborn mess. Its API is an > absolute disaster and, as you note, its functionality is unclear at best, > misleading at worst. Frankly it's worse than SPL. > > I'd be entirely on board with jettisoni

Re: [PHP-DEV] RFC: StreamWrapper Support for glob()

2022-10-02 Thread Timmy Almroth
> > I had a quick look to that PoC and it's basically just a quick wrapper > that depends on GLOB_ALTDIRFUNC. Unfortunately that's a non standard > extension that might be missing on some platform (e.g. alpine won't > probably work because from a quick look the musl libc doesn't seeem to > implemen

Re: [PHP-DEV] Sanitize filters

2022-10-02 Thread Hans Henrik Bergan
FILTER_SANITIZE_EMAIL should burn. If you have a bad email address, i can't imagine the correct solution is to remove characters until it becomes valid, short of a trim() On Sun, Oct 2, 2022, 17:10 Larry Garfield wrote: > On Sat, Oct 1, 2022, at 10:39 AM, Kamil Tekiela wrote: > > Hi Internals, >

Re: [PHP-DEV] Sanitize filters

2022-10-02 Thread Larry Garfield
On Sat, Oct 1, 2022, at 10:39 AM, Kamil Tekiela wrote: > Hi Internals, > > For quite some time now, PHP's sanitize filters have "Rustled My Jimmies". > These filters bother me because I can't really justify their existence. I > can understand that a few of them are sensible and may come in handy, b

Re: [PHP-DEV] Sanitize filters

2022-10-02 Thread Lokrain
Hello Vasilii, It’s okay to have different opinion I hope. You are missing an important point here - beside my comments, the current way this is developed brings confusion. It would be great if you share your experience on this matter. Regards, Dimitar On Sun, 2 Oct 2022 at 9:31, Vasilii Shpil