Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-09 Thread Jordan LeDoux
On Tue, Jul 9, 2024 at 11:42 PM Mike Schinkel wrote: > [snip] > My one useful takeaway from your email — except that I already knew that — > was the need to figure out how PHP can handle multiple symbol tables. > Beyond that, your take your own advice and spare us (me) from your contempt > and co

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-09 Thread Mike Schinkel
> On Jul 9, 2024, at 1:15 PM, Larry Garfield wrote: > On Sat, Jul 6, 2024, at 1:12 AM, Mike Schinkel wrote: >> WordPress differs from the apps many *(most?)* developers on PHP >> Internals work with in the following way: >> >> WordPress = *User-managed app* >> Most = *Developer-managed apps* >>

[PHP-DEV] Re: [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior

2024-07-09 Thread Saki Takamachi
Hi all, > Hi internals, > > Created a follow-up RFC for the BCMath\Number class. This RFC also contains > proposed changes to GMP's bool cast. I have proposed similar changes to > BCMath, so for procedural efficiency I have combined them into the same RFC. > > Note that although they are combi

Re: [PHP-DEV] [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior

2024-07-09 Thread Saki Takamachi
Hi, Tim > Thank you. As one of the persons who had concerns about the API introduced in > the first RFC all these changes make sense to me and clearly improve the API. > I'll happily vote in favor of both votes. I'm glad that your concerns seem to have been resolved. I feel the API has definit

Re: [PHP-DEV] [RFC] Improve language coherence for the behaviour of offsets and containers

2024-07-09 Thread Juliette Reinders Folmer
On 10-7-2024 1:39, Gina P. Banyard wrote: On Thursday, 4 July 2024 at 14:52, Gina P. Banyard wrote: Moreover, I know the traffic on the list has been pretty high, but I do intend to have this RFC up for voting for inclusion in PHP 8.4, and I'm not exactly sure how I am meant to interpret the l

Re: [PHP-DEV] [RFC] Improve language coherence for the behaviour of offsets and containers

2024-07-09 Thread Levi Morrison
> Moreover, I know the traffic on the list has been pretty high, but I do > intend to have this RFC up for voting for inclusion in PHP 8.4, and I'm not > exactly sure how I am meant to interpret the lack of responses. I am personally strongly in favor of the direction. As mentioned in the PR, my

[PHP-DEV] Decoding HTML and the Ambiguous Ampersand

2024-07-09 Thread Dennis Snell
Greetings all, The `html_entity_decode( … ENT_HTML5 … )` function has a number of issues that I’d like to correct.  - It’s missing 720 of HTML5’s specified named character references.  - 106 of these are named character references which do not require a trailing semicolon, such as `´`  - It’s

Re: [PHP-DEV] [RFC] Improve language coherence for the behaviour of offsets and containers

2024-07-09 Thread Gina P. Banyard
On Thursday, 4 July 2024 at 14:52, Gina P. Banyard wrote: > Hello internals, > > I would like to formally open the discussion on an RFC I've been working on > for the past year: > https://wiki.php.net/rfc/container-offset-behaviour > > As DokuWiki is a bit of a faff at times, the Markdown sour

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-09 Thread Rob Landers
On Tue, Jul 9, 2024, at 19:15, Larry Garfield wrote: > On Sat, Jul 6, 2024, at 1:12 AM, Mike Schinkel wrote: > > > > > > > Reading this however caused me to ponder things certain people has said > > recently — and many people have said for years on this list — and I > > think I am recognizing s

Re: [PHP-DEV] [RFC] [Discussion] Allow int type argument to BCMath function

2024-07-09 Thread Jordan LeDoux
On Tue, Jul 9, 2024 at 10:47 AM Tim Düsterhus wrote: > Hi > > On 7/8/24 11:36, Jordan LeDoux wrote: > > I suspected the same thing when I was doing my arbitrary precision > library, > > but I actually have yet to find a test case in all my unit tests where > this > > happens when converting to a

Re: [PHP-DEV] [Initial Feedback] Typed Arrays

2024-07-09 Thread Gina P. Banyard
On Tuesday, 9 July 2024 at 18:50, Richard Miles wrote: > I’ve asked for karma three separate times in this feed alone and it’s pretty > unclear who has that > ability, my apologies for assuming. Since you responded to that message > specifically, I figured you were a karma granter. Probably be

Re: [PHP-DEV] [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior

2024-07-09 Thread Tim Düsterhus
Hi On 6/30/24 17:03, Saki Takamachi wrote: Created a follow-up RFC for the BCMath\Number class. This RFC also contains proposed changes to GMP's bool cast. I have proposed similar changes to BCMath, so for procedural efficiency I have combined them into the same RFC. Note that although they a

Re: [PHP-DEV] ext/gd adding imagecompare

2024-07-09 Thread Tim Düsterhus
Hi On 7/9/24 19:53, David CARLIER wrote: Agreed, I ll likely just commit as is sometime this week. I hereby formally claim that this is not a simple self-contained feature. It does require an RFC. The addition of global `IMAGE_CMP_*` constants effectively introduces an entirely new "namesp

Re: [PHP-DEV] ext/gd adding imagecompare

2024-07-09 Thread Tim Düsterhus
Hi Yes, please no more global constants with names that are shortened beyond all recognition. On 7/9/24 18:59, Kamil Tekiela wrote: Boolean is a much more confusing value here. A bit mask is ok, but I would prefer a better solution. Maybe a simple value object? If it's "simple" then it wou

Re: [PHP-DEV] ext/gd adding imagecompare

2024-07-09 Thread David CARLIER
On Tue, 9 Jul 2024 at 18:31, Saki Takamachi wrote: > Hi David, > > It seems to be the opposite regarding his proposition gdImageCompare(im1, > im2) & GD_CMP_IMAGE. Then yes you are right, we are losing the specifics. > If you want to figure out how the image 1 and image 2 differ, you need to > us

Re: [PHP-DEV] [RFC] [Discussion] Allow int type argument to BCMath function

2024-07-09 Thread Tim Düsterhus
Hi On 7/8/24 06:29, Saki Takamachi wrote: I don't think a satisfactory specification will be decided on this before the feature freeze, so I will not rush into discussing this RFC for now. Of course, no voting will take place until the specifications are decided. If we were to discuss this ch

Re: [PHP-DEV] [Initial Feedback] Typed Arrays

2024-07-09 Thread Richard Miles
Levi, I did read this email in full before responding in parts. To that I’ll start by saying I’m sorry for origionally beinging this back into the internals thread and not in a DM. I did not realize it was a DM on oversight, seriously my bad. I still think we can all learn from this and your

Re: [PHP-DEV] [RFC] [Discussion] Allow int type argument to BCMath function

2024-07-09 Thread Tim Düsterhus
Hi On 7/8/24 11:36, Jordan LeDoux wrote: I suspected the same thing when I was doing my arbitrary precision library, but I actually have yet to find a test case in all my unit tests where this happens when converting to a string. You can see this here: https://3v4l.org/Ud8Cn PHP emits the sho

Re: [PHP-DEV] ext/gd adding imagecompare

2024-07-09 Thread Saki Takamachi
Hi David, > It seems to be the opposite regarding his proposition gdImageCompare(im1, > im2) & GD_CMP_IMAGE. Then yes you are right, we are losing the specifics. If > you want to figure out how the image 1 and image 2 differ, you need to use > the rest of the api e.g. imagecolortransparent and

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-09 Thread Larry Garfield
On Sat, Jul 6, 2024, at 1:12 AM, Mike Schinkel wrote: > > > Reading this however caused me to ponder things certain people has said > recently — and many people have said for years on this list — and I > think I am recognizing something that I have always known but never put > the pieces toget

Re: [PHP-DEV] ext/gd adding imagecompare

2024-07-09 Thread David CARLIER
Hi, On Tue, 9 Jul 2024 at 17:59, Kamil Tekiela wrote: > Boolean is a much more confusing value here. A bit mask is ok, but I would > prefer a better solution. Maybe a simple value object? > That could be an option too sure.

Re: [PHP-DEV] ext/gd adding imagecompare

2024-07-09 Thread David CARLIER
Hi Saki. On Tue, 9 Jul 2024 at 17:49, Saki Takamachi wrote: > Hi David, > > > Hi, > > > > I plan to add imagecompare to the gd extension. No problem so far > however a little discussion of the returned value > > > > https://github.com/php/php-src/pull/14877#issuecomment-2217686123 > > > > I pers

Re: [PHP-DEV] ext/gd adding imagecompare

2024-07-09 Thread Kamil Tekiela
Boolean is a much more confusing value here. A bit mask is ok, but I would prefer a better solution. Maybe a simple value object?

Re: [PHP-DEV] [Initial Feedback] Typed Arrays

2024-07-09 Thread Levi Morrison
On Tue, Jul 9, 2024 at 10:18 AM Richard Miles wrote: > > Hi Levi, > > First, were you able to discuss this with authors of other generic > proposals or implementations? Derick Rethans and Arnaud Le Blanc both > have experience there. > > > This proposal has nothing to do with generics. > Derick Re

Re: [PHP-DEV] ext/gd adding imagecompare

2024-07-09 Thread Saki Takamachi
Hi David, > Hi, > > I plan to add imagecompare to the gd extension. No problem so far however a > little discussion of the returned value > > https://github.com/php/php-src/pull/14877#issuecomment-2217686123 > > I personally see a value of a bitmask rather than just boolean which is not > har

[PHP-DEV] ext/gd adding imagecompare

2024-07-09 Thread David CARLIER
Hi, I plan to add imagecompare to the gd extension . No problem so far however a little discussion of the returned value https://github.com/php/php-src/pull/14877#issuecomment-2217686123 I personally see a value of a bitmask rather than just boolean whi

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-09 Thread Rowan Tommins [IMSoP]
On 9 July 2024 04:24:59 BST, Mike Schinkel wrote: >I think maybe you are replying to an earlier iteration by Michael Morris and >have not seen the more recent iteration? I wrote the message a few days ago, but it didn't post; but the more recent discussion still seems to be focussing on th