Re: [PHP-DEV] [low priority] WeakMaps with scalar keys

2024-07-10 Thread Rob Landers
On Thu, Jul 11, 2024, at 01:11, Benjamin Morel wrote: >> The answer is: it depends. If you don’t need the array to clean up after >> itself, you can indeed use an array of WeakReference to get most of the way >> there. If you want it to clean up after an object gets removed, you either >> need

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

2024-07-10 Thread Saki Takamachi
Hi Tim, > That's fair enough. > > I do still consider accepting 'int' to be less unsafe than accepting 'float', > because the behavior of ints can be reasoned about more easily and because > they to not experience implicit rounding. > > I do not particularly care whether or not 'int' is accept

Re: [PHP-DEV] [low priority] WeakMaps with scalar keys

2024-07-10 Thread Benjamin Morel
> > The answer is: it depends. If you don’t need the array to clean up after > itself, you can indeed use an array of WeakReference to get most of the way > there. If you want it to clean up after an object gets removed, you either > need to add support to the stored object’s destructor (which isn’

Re: [PHP-DEV] Decoding HTML and the Ambiguous Ampersand

2024-07-10 Thread Jim Winstead
On Tue, Jul 9, 2024, at 5:00 PM, Dennis Snell wrote: > [ lots snipped ] > > We’re exploring pure-PHP solutions to these problems in WordPress in attempts > to improve the reliability and safety of handling HTML. I’d love to hear your > thoughts and know if anyone is willing to work with me to cr

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

2024-07-10 Thread Jordan LeDoux
On Wed, Jul 10, 2024 at 1:08 PM Michael Morris wrote: > > > I'm in no rush - though it might not seem that way. I don't see this being > able to land before PHP 10. I'm pessimistic about the scope of these > changes. It can be done - and pieces have often been discussed before, but > they peter o

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

2024-07-10 Thread Rowan Tommins [IMSoP]
On 10 July 2024 21:04:41 BST, Michael Morris wrote: >The largest thrust of modules is to step forward with changes that are >desirable but impossible to implement because of BC breaks brought on by >unfortunate design decisions like the one mentioned previously. Likely >these will be visited o

Re: [PHP-DEV] Website php.net updates and coordination

2024-07-10 Thread Jim Winstead
On Wed, Jul 10, 2024, at 9:44 AM, Roman Pronskiy wrote: > [ snipped the specific issues ] > > I’d like to volunteer to help improve the PHP website and coordinate > efforts. Looking forward to your feedback. Once upon a time, management of the web site(s) was handled by those on the webmaster mai

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

2024-07-10 Thread Michael Morris
On Wed, Jul 10, 2024 at 3:29 PM Rowan Tommins [IMSoP] wrote: > > > On 10 July 2024 19:08:39 BST, Michael Morris wrote: > > Just to repeat a point that's been raised a few times: this is not a great > time of year for this kind of discussion. If you come back after 8.4 is > baked, you may get mor

Re: [PHP-DEV] Negatively Voted Notes

2024-07-10 Thread Christoph M. Becker
On 10.07.2024 at 21:24, Bilge wrote: > On 10/07/2024 19:42, Derick Rethans wrote: > >> Notes where never meant to be helpful to other developers. They were >> hints to the editors > > If that's the case, why would they even be public? Actually, there are guidelines regarding the handling of user

Re: [PHP-DEV] Negatively Voted Notes

2024-07-10 Thread Jim Winstead
On Wed, Jul 10, 2024, at 12:24 PM, Bilge wrote: > On 10/07/2024 19:42, Derick Rethans wrote: >> Notes where never meant to be helpful to other developers. They were hints >> to the editors > If that's the case, why would they even be public? > I think Derick is over-stating things a bit. As I me

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

2024-07-10 Thread Rowan Tommins [IMSoP]
On 10 July 2024 19:08:39 BST, Michael Morris wrote: Just to repeat a point that's been raised a few times: this is not a great time of year for this kind of discussion. If you come back after 8.4 is baked, you may get more enthusiasm. That will also give you time to make some more detailed

Re: [PHP-DEV] Negatively Voted Notes

2024-07-10 Thread Bilge
On 10/07/2024 19:42, Derick Rethans wrote: Notes where never meant to be helpful to other developers. They were hints to the editors If that's the case, why would they even be public? Cheers, Bilge

Re: [PHP-DEV] Re: [RFC] [Vote] #[\Deprecated] attribute

2024-07-10 Thread Tim Düsterhus
Hi I'm specifically replying to Nicolas, but this email is directed to the general public, so please feel free to reply even if you are not called Nicolas :-) On 6/24/24 17:06, Nicolas Grekas wrote: 2/ About the "since" parameter, we're going to standardize around a package+version string,

Re: [PHP-DEV] Negatively Voted Notes

2024-07-10 Thread Derick Rethans
On 10 July 2024 18:47:07 BST, fennic log wrote: >On Wed, 10 Jul 2024 at 15:18, Derick Rethans wrote: > >> Hi! >> >> There are currently nearly 2 notes in the documentation, with many >> having a very high negative rating. >> >> For example, there are: >> >> 1131 notes older than a year, with

Re: [PHP-DEV] Negatively Voted Notes

2024-07-10 Thread Jim Winstead
On Wed, Jul 10, 2024, at 7:18 AM, Derick Rethans wrote: > We discussed this during one of our foundation meetings, and we propose: > > - to delete all notes with a rating less than -5 that are older than a > year. > - come up with a plan to crowd source going through the other thousands > of

Re: [PHP-DEV] Negatively Voted Notes

2024-07-10 Thread Tim Düsterhus
Hi On 7/10/24 16:18, Derick Rethans wrote: Comments? For now I'm only asking to give me the time to go through the ext/random stuff myself before the automated deletion is performed (i.e. defer this until after feature freeze at least). Similarly to what Fennic Log replied, for ext/random

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

2024-07-10 Thread Michael Morris
On Wed, Jul 10, 2024 at 5:51 AM Jordi Boggiano wrote: > > As for the rest of the thread, I feel like everyone needs to take a few > days to chill because it's getting a bit heated around here. > People are passionate about the things they love. I've been busy with work and on Iteration V. Detai

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

2024-07-10 Thread Tim Düsterhus
Hi On 7/9/24 22:27, Jordan LeDoux wrote: I do not understand the argument for accepting one but not the other. That's fair enough. I do still consider accepting 'int' to be less unsafe than accepting 'float', because the behavior of ints can be reasoned about more easily and because they t

Re: [PHP-DEV] [low priority] WeakMaps with scalar keys

2024-07-10 Thread Rob Landers
On Wed, Jul 10, 2024, at 19:48, Gina P. Banyard wrote: > On Wednesday, 10 July 2024 at 18:34, Rob Landers wrote: >> Hello internals, >> >> I know now that some of you are swamped getting ready for 8.4, so I want to >> be clear that this will be an 8.5+ thing. I am simply sending it to the list

Re: [PHP-DEV] Negatively Voted Notes

2024-07-10 Thread fennic log
On Wed, 10 Jul 2024 at 15:18, Derick Rethans wrote: > Hi! > > There are currently nearly 2 notes in the documentation, with many > having a very high negative rating. > > For example, there are: > > 1131 notes older than a year, with a rating less than -10 > 2339 notes older than a year, with

Re: [PHP-DEV] [RFC] Property Hook improvements

2024-07-10 Thread Tim Düsterhus
Hi On 7/10/24 15:47, Larry Garfield wrote: The other half of this RFC, removing the recursion guard in return for performance, has had no objections. Its discussion period ends Friday, so I will open the vote on that Monday-ish. Thank you, looks good to me, ship it. One minor remark about

Re: [PHP-DEV] [low priority] WeakMaps with scalar keys

2024-07-10 Thread Gina P. Banyard
On Wednesday, 10 July 2024 at 18:34, Rob Landers wrote: > Hello internals, > > I know now that some of you are swamped getting ready for 8.4, so I want to > be clear that this will be an 8.5+ thing. I am simply sending it to the list > in case anyone wants to discuss it, burn it with fire, give

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

2024-07-10 Thread Gina P. Banyard
On Wednesday, 10 July 2024 at 16:22, Levi Morrison wrote: > > Everything considered, I still do not think changing the name of the > > append() method is a good idea, will it hurt adoption in the short term for > > some classes, yes, but I prefer this than having a large part of the > > ecosy

[PHP-DEV] [low priority] WeakMaps with scalar keys

2024-07-10 Thread Rob Landers
Hello internals, I know now that some of you are swamped getting ready for 8.4, so I want to be clear that this will be an 8.5+ thing. I am simply sending it to the list in case anyone wants to discuss it, burn it with fire, give it a gold star, or ignore until later. Currently, a WeakMap may

[PHP-DEV] Website php.net updates and coordination

2024-07-10 Thread Roman Pronskiy
Hello Internals, By way of introduction, I am Roman Pronskiy, Operations Manager / Executive Director at the PHP Foundation. I have contributed to and coordinated the PHP 8 release page in the past: https://github.com/php/web-php/commits?author=pronskiy. I wanted to address a few important matter

Re: [PHP-DEV] [Discussion] Add date_test_set_now() function

2024-07-10 Thread Derick Rethans
On Mon, 1 Jul 2024, Go Kudo wrote: > So, how about adding a `date_set_test_now(\DateInterval > $shiftInterval)` function to ext-date? > > This function would treat the current time as shifted by the passed > DateInterval. Since it's implemented on the ext-date side, there's no > need for dirty

Re: [PHP-DEV] Re: [Discussion] Add date_test_set_now() function

2024-07-10 Thread Derick Rethans
On Mon, 1 Jul 2024, Lanre wrote: > On Mon, Jul 1, 2024 at 2:21 PM Jorg Sowa wrote: > > > > You don’t make any effort to help or provide constructive criticism; you > > just love to (incorrectly) tell everyone what they're doing wrong and how > > they should be doing it, without adding anything c

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

2024-07-10 Thread David CARLIER
Hi On Tue, 9 Jul 2024 at 19:16, Tim Düsterhus wrote: > 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 `IM

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

2024-07-10 Thread Levi Morrison
> Everything considered, I still do not think changing the name of the append() > method is a good idea, will it hurt adoption in the short term for some > classes, yes, but I prefer this than having a large part of the ecosystem > needing to create an alias just for some weird cases. I don't f

Re: [PHP-DEV] Negatively Voted Notes

2024-07-10 Thread Gina P. Banyard
On Wednesday, 10 July 2024 at 15:18, Derick Rethans wrote: > Hi! > > There are currently nearly 2 notes in the documentation, with many > having a very high negative rating. > > For example, there are: > > 1131 notes older than a year, with a rating less than -10 > 2339 notes older than a

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

2024-07-10 Thread Gina P. Banyard
On Wednesday, 10 July 2024 at 01:52, Levi Morrison 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 lack of responses. > > > I am

[PHP-DEV] Negatively Voted Notes

2024-07-10 Thread Derick Rethans
Hi! There are currently nearly 2 notes in the documentation, with many having a very high negative rating. For example, there are: 1131 notes older than a year, with a rating less than -10 2339 notes older than a year, with a rating less than -5 5761 notes older than a year, with a rating l

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

2024-07-10 Thread Larry Garfield
On Wed, Jul 10, 2024, at 1:38 AM, Mike Schinkel wrote: >> In fact, if you use an optimized/dumped autoloader, then Composer simply >> builds an internal giant lookup table of what class maps to what file. >> PSR-4 is then *completely irrelevant* at runtime. It's already one giant >> O(1) look

Re: [PHP-DEV] [RFC] Property Hook improvements

2024-07-10 Thread Larry Garfield
On Mon, Jul 1, 2024, at 12:02 PM, Larry Garfield wrote: > Hi folks. As Ilija's been polishing off hooks to get the PR merged, > we've run into two small revisions that should make life better for all > involved. One is a performance improvement that requires a very slight > error handling beha

Re: [PHP-DEV] Re: VCS Account Request: youkidearitai

2024-07-10 Thread Derick Rethans
On Wed, 10 Jul 2024, youkidearitai wrote: > 2024年7月1日(月) 21:43 youkidearitai : > > > > 2024年7月1日(月) 21:19 Ilija Tovilo : > > > > > > Sorry for the delay. I granted you access to the php-src > > > repository. Please familiarize yourself with our merging process > > > [1]. Note that I unfortunatel

Re: [PHP-DEV] Re: VCS Account Request: youkidearitai

2024-07-10 Thread youkidearitai
2024年7月1日(月) 21:43 youkidearitai : > > 2024年7月1日(月) 21:19 Ilija Tovilo : > > > > Hi Yuya! > > > > On Sat, Jun 29, 2024 at 11:11 PM youkidearitai > > wrote: > > > > > > 2024年4月9日(火) 7:55 youkidearitai : > > > > > > > > Mainly review and approve pull request to mbstring extension. > > > > (probably

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

2024-07-10 Thread Rowan Tommins [IMSoP]
On Wed, 10 Jul 2024, at 07:38, Mike Schinkel wrote: > The request is to add class maps with a PHP-standardized format into > PHP core so that when a library of code needs to register classes to be > autoloaded they can contribute to a cascading of class maps where ONE > internal function checks

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

2024-07-10 Thread Larry Garfield
On Tue, Jul 9, 2024, at 7:52 PM, Levi Morrison 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 lack of responses. > > I am personally st

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

2024-07-10 Thread Mike Schinkel
> On Jul 10, 2024, at 5:50 AM, Jordi Boggiano wrote: > > On 2024-07-09 05:24, Mike Schinkel wrote: >> >> >> And this sentence is why I chose to reply to your message. That assumption >> itself blocks the needs of user-managed apps. >> >> (Did you happen to read my compare-and-contrast of us

Re: [PHP-DEV] [RFC] Property Hook improvements

2024-07-10 Thread Ilija Tovilo
Hi Derick On Wed, Jul 10, 2024 at 11:32 AM Derick Rethans wrote: > > On Mon, 1 Jul 2024, Larry Garfield wrote: > > > > > https://wiki.php.net/rfc/hook_improvements > > 1. Remove the proactive guard against recursive backing value access > > "which would eventually trigger a stack overflow

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

2024-07-10 Thread Jordi Boggiano
On 2024-07-09 05:24, Mike Schinkel wrote: And this sentence is why I chose to reply to your message. That assumption itself blocks the needs of user-managed apps. (Did you happen to read my compare-and-contrast of user-managed vs. developer-managed apps from a few days ago?) I feel it is lik

Re: [PHP-DEV] [RFC] Property Hook improvements

2024-07-10 Thread Derick Rethans
On Mon, 1 Jul 2024, Larry Garfield wrote: > Hi folks. As Ilija's been polishing off hooks to get the PR merged, > we've run into two small revisions that should make life better for > all involved. One is a performance improvement that requires a very > slight error handling behavior change,

Re: [PHP-DEV] [RFC] Property Hook improvements

2024-07-10 Thread Derick Rethans
On Wed, 3 Jul 2024, Claude Pache wrote: > > Le 1 juil. 2024 à 19:02, Larry Garfield a > > écrit : > > > > Hi folks. As Ilija's been polishing off hooks to get the PR merged, > > we've run into two small revisions that should make life better for > > all involved. One is a performance improv

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

2024-07-10 Thread Derick Rethans
On Tue, 9 Jul 2024, Tim Düsterhus wrote: > 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 > > s

Re: [PHP-DEV] [RFC] [Discussion] Add bcdivmod to BCMath

2024-07-10 Thread Derick Rethans
On Wed, 10 Jul 2024, Derick Rethans wrote: > On Mon, 1 Jul 2024, Saki Takamachi wrote: > > The example has: > > [$perMouth, $slicesLeft] = $slicesOfPizza->divmod($mouthsToFeed); > > // $perMouth->value is '2' > // $slicesLeft->value is '2' > > Shouldn't that be (withou

Re: [PHP-DEV] [RFC] [Discussion] Add bcdivmod to BCMath

2024-07-10 Thread Derick Rethans
On Mon, 1 Jul 2024, Saki Takamachi wrote: > Hi, > > >> Just a suggestion: what about making the returned array an associative > >> array ? Like so: > >> ``` > >> array( > >> 'quotient' => 61, > >> 'remainder' => 1, > >> ); > >> ``` > >> This would remove the need for devs to remember th

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

2024-07-10 Thread Mike Schinkel
> On Jul 10, 2024, at 2:56 AM, Jordan LeDoux wrote: > > 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