Re: Re:Re: Re:Re: [PHP-DEV] [RFC] Remove \0 from default trim() character mask
| From: | go dot al dot ni at gmail dot com | Date: | Mon, 30 Mar 2026 11:54:05 +0000 |
| Subject: | Re: Re:Re: Re:Re: [PHP-DEV] [RFC] Remove \0 from default trim() character mask | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130494@lists.php.net to get a copy of this message | ||
> And yes, the security thing is the blocker on NUL, but if trim_space() idea
> clicked, and given your interest in topic and the bit precision you've
> shown, may I ask you if you have some interest in implementing it?
No need to invent trim_space() anew. It already exists:
https://www.php.net/manual/function.mb-trim.php