Re: [PHP-DEV] Module or Class Visibility, Season 2

2025-05-31 Thread Michael Morris
Ok, the conversation is getting sidetracked, but I think some progress is being made. I started this latest iteration last year with a thread about introducing something similar to the ES module system of JavaScript to PHP. What attracts me to this particular model is that it should already be fam

Re: [PHP-DEV] Adding in a case-insensitive version of str_contains

2025-05-31 Thread youkidearitai
2025年6月1日(日) 1:07 Derick Rethans : > > On 31 May 2025 12:36:52 BST, youkidearitai wrote: > >2025年5月31日(土) 19:41 Nikita Popov : > >> > >> On Thu, May 29, 2025, at 23:00, Kamil Tekiela wrote: > >> > >> As I understand, it was a conscious decision not to add this function > >> when str_contains was c

Re: [PHP-DEV] Adding in a case-insensitive version of str_contains

2025-05-31 Thread Derick Rethans
On 31 May 2025 12:36:52 BST, youkidearitai wrote: >2025年5月31日(土) 19:41 Nikita Popov : >> >> On Thu, May 29, 2025, at 23:00, Kamil Tekiela wrote: >> >> As I understand, it was a conscious decision not to add this function >> when str_contains was created. The reason is that case sensitivity is >> l

Re: [PHP-DEV] Module or Class Visibility, Season 2

2025-05-31 Thread Alwin Garside
On 30 May 2025, at 21:29, Rowan Tommins [IMSoP] wrote: > > On 30 May 2025 19:21:08 BST, Alwin Garside wrote: >> In the example above, I image calling or extending the `Foo::bar()` method >> from somewhere outside the `Acme` namespace would trigger an E_USER_WARNING >> or E_USER_NOTICE. The war

Re: [PHP-DEV] Adding in a case-insensitive version of str_contains

2025-05-31 Thread youkidearitai
2025年5月31日(土) 19:41 Nikita Popov : > > On Thu, May 29, 2025, at 23:00, Kamil Tekiela wrote: > > As I understand, it was a conscious decision not to add this function > when str_contains was created. The reason is that case sensitivity is > locale-dependent, and for such use cases, mbstring extensio

Re: [PHP-DEV] Adding in a case-insensitive version of str_contains

2025-05-31 Thread Nikita Popov
On Thu, May 29, 2025, at 23:00, Kamil Tekiela wrote: > As I understand, it was a conscious decision not to add this function > when str_contains was created. The reason is that case sensitivity is > locale-dependent, and for such use cases, mbstring extension is better > [1] & [2]. Do you think tha

[PHP-DEV] RFC karma

2025-05-31 Thread Adam Cable
Hi, Can I have RFC karma please for account adamcable please. I'm looking to create a RFC for str_icontains (and maybe more in the future). https://github.com/php/php-src/pull/18705 Thanks, Adam