Re: [RFC] Remove \0 from default trim() character mask
| From: | Marco Pivetta | Date: | Wed, 25 Mar 2026 10:02:53 +0000 |
| Subject: | Re: [RFC] Remove \0 from default trim() character mask | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130445@lists.php.net to get a copy of this message | ||
On Tue, 24 Mar 2026 at 19:29, Levi Morrison <levi.morrison@datadoghq.com>
wrote:
> There hasn't been much discussion, so dear internals: are simply busy,
> un-opinionated, or what?
>
I'd vote against this proposal:
\0 being considered one of the stripped
characters is now a downstream assumption, and this ends up being a BC
break with little to no advantages.
From a semantic perspective, \n, \t and \r are also
"control
characters" in other contexts (not the C world).
Marco Pivetta
https://mastodon.social/@ocramius
https://ocramius.github.io/