Re:Re: Re:Re: [PHP-DEV] [RFC] Remove \0 from default trim() character mask

From: Date: Mon, 30 Mar 2026 09:46:11 +0000
Subject: 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-130490@lists.php.net to get a copy of this message
Thank you for ideas! AFAIK here are my thoughts on this Now I realized the point that, those trim functions are not supposed to be used to remove whitespaces in strings, which solves my main concern that NUL is not a 'space' character. On top of that, we still have security concerns (and more) for this change, **and therefore I would like to withdraw this RFC.** Moreover, the proposed new function 'trim_whitespace()' seems to be more reasonable for people to use to strip whitespaces instead of casually using the trim family, which would obviously be a better solution in this case. Thank you for your attention and suggestions! -- Weilin Du

« previous php.internals (#130490) next »