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 [email protected] to get a copy of this message
Hi all,

> On Mar 20, 2025, at 01:31, youkidearitai <[email protected]> wrote:
> 
> ---------- Forwarded message ---------
> From: youkidearitai <[email protected]>
> Date: 2025年3月20日(木) 14:41
> Subject: Re: [PHP-DEV] Potential RFC: mb_rawurlencode() ?
> To: Paul M. Jones <[email protected]>
> 
> 
> 2025年3月19日(水) 2:52 Paul M. Jones <[email protected]>:
> 
>> 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


Thread (6 messages)

« previous php.internals (#126870) next »