Re: Potential RFC: mb_rawurlencode() ?

From: Date: Thu, 20 Mar 2025 16:46:46 +0000
Subject: Re: Potential RFC: mb_rawurlencode() ?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-126870@lists.php.net to get a copy of this message
Hi all, > On Mar 20, 2025, at 01:31, youkidearitai <youkidearitai@gmail.com> wrote: > > ---------- Forwarded message --------- > From: youkidearitai <youkidearitai@gmail.com> > Date: 2025年3月20日(木) 14:41 > Subject: Re: [PHP-DEV] Potential RFC: mb_rawurlencode() ? > To: Paul M. Jones <pmjones@pmjones.io> > > > 2025年3月19日(水) 2:52 Paul M. Jones <pmjones@pmjones.io>: > >> If not, how do we feel about an RFC for mb_rawurlencode()? A naive userland implementation >> might look something like the code below. >> >> Thoughts? >> >> * * * >> >> ```php >> function mb_rawurlencode(string $string) : string > > Hi, Paul. > > I think signature is below: > > ```php > function mb_rawurlencode(string $string, string $encode): string {} > ``` Ah yes, you're right -- probably ?string $encode = null to match with mb_substr(). > Oops, I missing to send to internals. > Sorry resend this is. Not to worry, thank you! -- pmj

« previous php.internals (#126870) next »