Re: [PHP-DEV] RFC [Discussion]: mb_str_pad

2023-05-22 Thread Jorg Sowa
It's a reasonable approach. Thanks for clearing it up. Kind regards, Jorg

Re: [PHP-DEV] RFC [Discussion]: mb_str_pad

2023-05-22 Thread Niels Dossche
Hi On 5/22/23 00:08, Jorg Sowa wrote: > Hello, > As this is a new function do you consider any namespace for it? Based on > passed RFC[1] allowing for namespaces in bundled extensions it would be > nice to introduce new functions with namespace. Maybe the namespace could > be voted in the RFC sepa

Re: [PHP-DEV] RFC [Discussion]: mb_str_pad

2023-05-22 Thread Tim Düsterhus
Hi On 5/22/23 00:08, Jorg Sowa wrote: As this is a new function do you consider any namespace for it? Based on passed RFC[1] allowing for namespaces in bundled extensions it would be nice to introduce new functions with namespace. Maybe the namespace could be voted in the RFC separately? […] [1]

Re: [PHP-DEV] RFC [Discussion]: mb_str_pad

2023-05-21 Thread Jorg Sowa
Hello, As this is a new function do you consider any namespace for it? Based on passed RFC[1] allowing for namespaces in bundled extensions it would be nice to introduce new functions with namespace. Maybe the namespace could be voted in the RFC separately? Kind regards, Jorg [1] https://wiki.php

Re: [PHP-DEV] RFC [Discussion]: mb_str_pad

2023-05-20 Thread Niels Dossche
Hi Rowan On 5/20/23 17:13, Rowan Tommins wrote: > On 20 May 2023 13:53:20 BST, Niels Dossche wrote: >> RFC: https://wiki.php.net/rfc/mb_str_pad > > Hi Niels, > > This seems like a reasonable addition. My only hesitation is that it will > share with other mbstring functions the slightly dubious

Re: [PHP-DEV] RFC [Discussion]: mb_str_pad

2023-05-20 Thread Rowan Tommins
On 20 May 2023 13:53:20 BST, Niels Dossche wrote: >RFC: https://wiki.php.net/rfc/mb_str_pad Hi Niels, This seems like a reasonable addition. My only hesitation is that it will share with other mbstring functions the slightly dubious definition of "character" as "code point", rather than "graph