Re: [PHP-DEV] [VOTE] Add IntlDatePatternGenerator

2021-05-28 Thread Larry Garfield
On Fri, May 28, 2021, at 5:52 PM, Mel Dafert wrote: > >It's ... checks calendar ... the year 2021. Do we *really* need to add a > >procedural mirror APIs, especially with such auspicious function names as > >datepatterngenerator_get_best_pattern? > > > >I believe the procedural APIs are considered

Re: [PHP-DEV] [VOTE] Add IntlDatePatternGenerator

2021-05-28 Thread Mel Dafert
>It's ... checks calendar ... the year 2021. Do we *really* need to add a >procedural mirror APIs, especially with such auspicious function names as >datepatterngenerator_get_best_pattern? > >I believe the procedural APIs are considered legacy APIs, and we are >intentionally not adding them for new

Re: [PHP-DEV] A little syntactic sugar on array_* function calls?

2021-05-28 Thread Hendra Gunawan
Hello. > > The only correct way to resolve this issue is to not support mutable > operations. > Correct me if I'm wrong: scalar object will hit memory limit earlier than old API if it applied to $some_huge_shared_array for several method calls. > > I don't think there's much need for mutable op

Re: [PHP-DEV] A little syntactic sugar on array_* function calls?

2021-05-28 Thread Mike Schinkel
Hi Nikita, Thank you for taking the time to explain in detail. One more question below. -Mike > On May 28, 2021, at 10:31 AM, Nikita Popov wrote: > > On Fri, May 28, 2021 at 3:11 AM Mike Schinkel > wrote: > > On May 26, 2021, at 7:44 PM, Hendra Gunawan >

Re: [PHP-DEV] A little syntactic sugar on array_* function calls?

2021-05-28 Thread Mark Randall
On 28/05/2021 15:31, Nikita Popov wrote: This is a more complex case. In this case the compiler doesn't know in advance whether the argument is passed by value or by reference. What happens here is: I'm trying to wrap my head around this, but if a function arg can handle this, does something

Re: [PHP-DEV] [VOTE] Add IntlDatePatternGenerator

2021-05-28 Thread Nikita Popov
On Fri, May 14, 2021 at 5:56 PM Mel Dafert wrote: > Hi Internals, > I have opened the vote on > https://wiki.php.net/rfc/intldatetimepatterngenerator. > I will close it on 2021-05-28. > > For previous discussion see https://externals.io/message/113831 and > https://externals.io/message/114124. >

Re: [PHP-DEV] A little syntactic sugar on array_* function calls?

2021-05-28 Thread Nikita Popov
On Fri, May 28, 2021 at 3:11 AM Mike Schinkel wrote: > > On May 26, 2021, at 7:44 PM, Hendra Gunawan > wrote: > > > > Hello. > > > >> > >> Yes, but Nikita wrote this note about technical limitations at the > bottom of the repo README: > >> > >> Due to technical limitations, it is not possible to

Re: [PHP-DEV] [VOTE] Add IntlDatePatternGenerator

2021-05-28 Thread Mel Dafert
Hi Internals, I am pleased to announce that this RFC has been accepted unanimously. I have closed the vote. Regards, Mel - Original Message - From: "Mel Dafert" To: "internals" Sent: Friday, May 14, 2021 5:56:23 PM Subject: [PHP-DEV] [VOTE] Add IntlDatePatternGenerator Hi Internals, I

Re: [PHP-DEV] Escape \0 in var_dump() output

2021-05-28 Thread Nikita Popov
On Thu, May 27, 2021 at 6:11 PM Sara Golemon wrote: > On Thu, May 27, 2021 at 9:07 AM Nikita Popov wrote: > >> Ah, I think I explained the original issue badly: The test runner output >> isn't really a problem, or at least I never perceived it to be. >> >> The problem is that if you change a tes