Re: [PHP-DEV] Debian Upgrade

2023-11-20 Thread Derick Rethans
On 20 November 2023 21:37:55 GMT, Rowan Tommins wrote: >On 15/11/2023 16:59, Derick Rethans wrote: >> In the last few days, I have upgrade all our Digital Ocean droplets from >> Debian 10 (or 9!) to 12. That also means they now run PHP 8.2. > > >Hi Derick, > >Thanks for getting things current! Sys

Re: [PHP-DEV] RFC Proposal - static modifier for classes

2023-11-20 Thread Mike Schinkel
Wow. This thread has gone from zero-to-toxic in no time flat, and with some participants being borderline condescending. It is almost as if some folk are still in kindergarten. Maybe try a different approach, from both sides of this debate? For the advocates, how about explaining the use-cas

Re: [PHP-DEV] Re: [RFC][Discussion] Harmonise "untyped" and "typed" properties

2023-11-20 Thread Larry Garfield
On Mon, Nov 20, 2023, at 11:08 PM, Rowan Tommins wrote: > On 16/11/2023 20:41, Rowan Tommins wrote: >> Hi all, >> >> I have finally written up an RFC I have been considering for some >> time: Harmonise "untyped" and "typed" properties >> >> RFC URL: https://wiki.php.net/rfc/mixed_vs_untyped_proper

Re: [PHP-DEV] RFC Proposal - static modifier for classes

2023-11-20 Thread Larry Garfield
On Mon, Nov 20, 2023, at 9:00 PM, Lanre Waju wrote: > I will have to disagree with everything you said: > > I outlined what a static class would be: A class that cannot be > instantiated in which all members are implicitly static. We already have > static members, so please elaborate on the maint

[PHP-DEV] Re: [RFC][Discussion] Harmonise "untyped" and "typed" properties

2023-11-20 Thread Rowan Tommins
On 16/11/2023 20:41, Rowan Tommins wrote: Hi all, I have finally written up an RFC I have been considering for some time: Harmonise "untyped" and "typed" properties RFC URL: https://wiki.php.net/rfc/mixed_vs_untyped_properties I've revised the RFC; it now proposes to keep the implicit "= n

Re: [PHP-DEV] Debian Upgrade

2023-11-20 Thread Rowan Tommins
On 15/11/2023 16:59, Derick Rethans wrote: In the last few days, I have upgrade all our Digital Ocean droplets from Debian 10 (or 9!) to 12. That also means they now run PHP 8.2. Hi Derick, Thanks for getting things current! System maintenance is such an essential but often underappreciated

Re: [PHP-DEV] RFC Proposal - static modifier for classes

2023-11-20 Thread Kamil Tekiela
A class with a private constructor can still be instantiated. A class that cannot be instantiated is pretty much useless. A static class would be just a collection of functions. And I know that many developers write such classes but it doesn't mean the language should encourage it. After all, if so

Re: [PHP-DEV] [VOTE] [RFC]

2023-11-20 Thread Jorg Sowa
Thank you for catching this. This is a mistake that I have just fixed. This part states now: > ROUND_TOWARD_ZERO (equivalent of PHP_ROUND_TOWARD_ZERO) alias of ROUND_DOWN > ROUND_AWAY_FROM_ZERO (equivalen

Re: [PHP-DEV] RFC Proposal - static modifier for classes

2023-11-20 Thread Jorg Sowa
Hi Lanre, I like your idea and I was even thinking about proposing the same addition. The thing that is missing in the description is how the static class should handle magic methods. Should they be disabled for them? One plus of static classes which exist in other languages are that we wouldn't

Re: [PHP-DEV] RFC Proposal - static modifier for classes

2023-11-20 Thread Lanre Waju
I will have to disagree with everything you said: I outlined what a static class would be: A class that cannot be instantiated in which all members are implicitly static. We already have static members, so please elaborate on the maintenance burden that adding static to a class as that could h

Re: [PHP-DEV] RFC Proposal - static modifier for classes

2023-11-20 Thread Rowan Tommins
On 20 November 2023 18:53:50 GMT, Deleu wrote: >> It's probably not productive to just say "the people who voted last time >> are wrong", but it was long enough ago that a new RFC on the topic wouldn't >> break any rules. > > >9 years is long enough to conclude that whatever happens, they weren't

Re: [PHP-DEV] [VOTE] [RFC]

2023-11-20 Thread Ben Ramsey
> On Nov 15, 2023, at 11:25, Jorg Sowa wrote: > > Hello internals! > I have just opened voting on the RFC to add 4 new rounding modes to round() > function. > > Voting will end November 30th, 00:00 GMT. > > Link: > https://wiki.php.net/rfc/new_rounding_modes_to_round_function > > Kind regards,

Re: [PHP-DEV] RFC Proposal - static modifier for classes

2023-11-20 Thread Larry Garfield
On Mon, Nov 20, 2023, at 7:52 AM, Rowan Tommins wrote: > On 19 November 2023 21:28:08 GMT, Lanre Waju wrote: >>Hi, similar to the abstract and readonly modifiers to classes (similar in >>syntax only), I propose a class level "static" modifier that ensures: > > > Hi Lanre, > > There was a proposal

Re: [PHP-DEV] RFC Proposal - static modifier for classes

2023-11-20 Thread Deleu
On Mon, Nov 20, 2023 at 1:43 PM Rowan Tommins wrote: > On 20 November 2023 08:35:15 GMT, Lanre Waju > wrote: > > >1. I will personally implement this feature. > > That's good to hear, but the initial implementation is not the main cost > of a new feature. Once we add something, it's very hard to

Re: [PHP-DEV] RFC Proposal - static modifier for classes

2023-11-20 Thread Rowan Tommins
On 20 November 2023 08:35:15 GMT, Lanre Waju wrote: >1. I will personally implement this feature. That's good to hear, but the initial implementation is not the main cost of a new feature. Once we add something, it's very hard to remove, and every future change has to consider that feature and

Re: [PHP-DEV] Request PHP 8.3 GA release push back

2023-11-20 Thread Jakub Zelenka
On Mon, Nov 20, 2023 at 2:10 PM Jakub Zelenka wrote: > On Mon, Nov 20, 2023 at 1:55 PM Jakub Zelenka wrote: > >> Hi >> >> On Mon, Nov 20, 2023 at 1:16 PM G. P. B. >> wrote: >> >>> >>> - An ext/posix bug [1], which has a fix [2] >>> >> >> I just merged this as it was also confirmed by OP that it

Re: [PHP-DEV] Request PHP 8.3 GA release push back

2023-11-20 Thread Jakub Zelenka
On Mon, Nov 20, 2023 at 1:55 PM Jakub Zelenka wrote: > Hi > > On Mon, Nov 20, 2023 at 1:16 PM G. P. B. wrote: > >> >> - An ext/posix bug [1], which has a fix [2] >> > > I just merged this as it was also confirmed by OP that it fixes the issue > so this should be now sorted hopefully. > > >> - Tw

Re: [PHP-DEV] Request PHP 8.3 GA release push back

2023-11-20 Thread Jakub Zelenka
Hi On Mon, Nov 20, 2023 at 1:16 PM G. P. B. wrote: > > - An ext/posix bug [1], which has a fix [2] > I just merged this as it was also confirmed by OP that it fixes the issue so this should be now sorted hopefully. > - Two ext/pgsql bugs around the new pipeline support: > - A constant not b

Re: [PHP-DEV] Request PHP 8.3 GA release push back

2023-11-20 Thread Saki Takamachi
> As far as I am aware, the 8.3.0 release is meant to be tagged tomorrow. > > However, there are at least three known bugs in RC6: > > - An ext/posix bug [1], which has a fix [2] > - Two ext/pgsql bugs around the new pipeline support: > - A constant not being exposed [3] > - The overall impleme

[PHP-DEV] Request PHP 8.3 GA release push back

2023-11-20 Thread G. P. B.
Hello internals, As far as I am aware, the 8.3.0 release is meant to be tagged tomorrow. However, there are at least three known bugs in RC6: - An ext/posix bug [1], which has a fix [2] - Two ext/pgsql bugs around the new pipeline support: - A constant not being exposed [3] - The overall imp

Re: [PHP-DEV] Is it possible to add asynchronous loop call function ?

2023-11-20 Thread Daniil Gentili
Hi, You probably want something similar to golang's defer keyword. I intend to submit an RFC and PR for a defer keyword in PHP sometime in the future. Regards, Daniil Gentili. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] Is it possible to add asynchronous loop call function ?

2023-11-20 Thread chopins xiao
Similar to a tick event, an async function will be called automatically after the block of code . and the async function is cleared when script shutown. Async function can be cleared after they have returned, or they can continue to be called at the next event after they have returned. and some

Re: [PHP-DEV] RFC Proposal - static modifier for classes

2023-11-20 Thread Lanre Waju
Thank you for bringing those threads to my attention. I hadn't encountered them before, but it appears to be the typical argument of "I don't want this, so you shouldn't," along with "why do x when you can just do y (notice how y is not x)." 1. I will personally implement this feature. 2. Thi