Re: [rfc] str_mask function

From: Date: Sat, 19 Sep 2026 03:16:27 +0000
Subject: Re: [rfc] str_mask function
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-132548@lists.php.net to get a copy of this message
On 18 Sep 2026 at 18:43 -0400, Casper Langemeijer <langemeijer@php.net>, wrote: > Not useful. > Easily implemented in user-space. > Performance would never be an issue for a function typically used on small strings a few times > per request. > > In the multi-million-line web application I work on this probably would not be used even once. > > Greetings, Casper This. I don’t see any reason why this should added. Its use-case is quite a niche, which can be easily solved by calling substr_replace together with str_repeat. If you want to go on with your idea, the string parameter of this function should have the SensitiveParameter attribute or else it may end up in a backtrace. Regards, Jordi

« previous php.internals (#132548) next »