Re: [PHP-DEV] Re: [VOTE] Deprecate dynamic properties

2021-11-25 Thread Brady Wetherington via internals
> > That's 1.5 million hours, which is 171 developer-years. > > If we're going to imagine numbers; there are 6 million PHP developers > in the world*. If on average they each lose just 1 hour per year by > making typos and accidentally creating a properties dynamically, > that's 6 million hours, or

Re: [PHP-DEV] Need Update regarding PHP Travis CI Execution

2021-11-25 Thread Pierre Joye
Hi Nikita, On Thu, Nov 25, 2021 at 3:47 PM Nikita Popov wrote: > Travis is working again. In the meantime, I asked AWS if it is ok to share GD's graviton box with php, all good. If we don't have one, happy to add you there. GH Actions already in place, only need to set up two accounts (I never

Re: [PHP-DEV] Re: [VOTE] Deprecate dynamic properties

2021-11-25 Thread Dan Ackroyd
On Fri, 26 Nov 2021 at 00:55, Brady Wetherington via internals wrote: > > That's 1.5 million hours, which is 171 developer-years. If we're going to imagine numbers; there are 6 million PHP developers in the world*. If on average they each lose just 1 hour per year by making typos and accidentally

Re: [PHP-DEV] Re: [VOTE] Deprecate dynamic properties

2021-11-25 Thread Brady Wetherington via internals
> This is a little bit overly dramatic. This isn't such a huge change that > would affect 50% of existing projects. It's likely to affect a small number > of projects in a very limited way. > It's also not true that developers will slap #[AllowDynamicProperties] on > every class. That would impl

Re: [PHP-DEV] Re: [VOTE] Deprecate dynamic properties

2021-11-25 Thread Kamil Tekiela
Hi Brady, This is a little bit overly dramatic. This isn't such a huge change that would affect 50% of existing projects. It's likely to affect a small number of projects in a very limited way. It's also not true that developers will slap #[AllowDynamicProperties] on every class. That would imply

[PHP-DEV] Re: [VOTE] Deprecate dynamic properties

2021-11-25 Thread Brady Wetherington via internals
Sorry for the 11th hour chime-in, but I wanted to add some context about this proposed change, and how it would likely affect our project and many others. I know the prospect of opt-in was already addressed, but I wanted to talk about what our experience would be here. (We make Snipe-IT, which is o

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Tim Starling
On 25/11/21 11:34 pm, Paul Crovella wrote: > On Thu, Nov 25, 2021 at 3:14 AM Tim Starling wrote: >> On 25/11/21 7:57 pm, Côme Chilliet wrote: >> >>> To reuse the example from the RFC, if I want to convert a UTF string to >>> uppercase using Turkish rules and get dotted capital I, what should I us

Re: [PHP-DEV] Re: [RFC] Deprecate dynamic properties

2021-11-25 Thread Dan Ackroyd
Hi Juliette, On Mon, 15 Nov 2021 at 23:36, wrote: > > I've been asked to post the link to the Twitter discussion in this > thread for visibility. > > The Twitter thread generated, and is still generating, quite a lot of > discussion, I'm not going to quote from the Twitter thread partly as lot o

Re: [PHP-DEV] [VOTE] Deprecate dynamic properties

2021-11-25 Thread Dan Ackroyd
On Fri, 12 Nov 2021 at 19:00, Matthew Weier O'Phinney wrote: > > Our IDEs, coding standards, and static analysis tools can already flag > these things for us, helping us catch them early. Hell, unit testing will > find these for us, when a test fails due to a value not being set in a > property th

Re: [PHP-DEV] Automatic performance benchmarking: PHP 8.1 is ~30% faster than PHP 7.4

2021-11-25 Thread Matthew Weier O'Phinney
On Thu, Nov 25, 2021, 12:17 PM Máté Kocsis wrote: > Sorry Folks, but I have to provide some update about the results: > > Unfortunately, due to a silly bug in my calculator code, the % differences > in the benchmark results were slightly off from their real values, so I > have just retroactively

[PHP-DEV] PHP 8.1.0 Released!

2021-11-25 Thread Patrick ALLAERT
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 The PHP development team announces the immediate availability of PHP 8.1.0. This release marks the latest major release of the PHP language. PHP 8.1 comes with numerous improvements and new features such as: - - Enumerations - - Readonly properties

Re: [PHP-DEV] Automatic performance benchmarking: PHP 8.1 is ~30% faster than PHP 7.4

2021-11-25 Thread Máté Kocsis
Sorry Folks, but I have to provide some update about the results: Unfortunately, due to a silly bug in my calculator code, the % differences in the benchmark results were slightly off from their real values, so I have just retroactively adjusted them. In fact, the Symfony demo app on PHP 8.1 is ~2

[PHP-DEV] Re: [VOTE] Deprecate dynamic properties

2021-11-25 Thread Nikita Popov
On Fri, Nov 12, 2021 at 2:07 PM Nikita Popov wrote: > Hi internals, > > I've opened the vote on > https://wiki.php.net/rfc/deprecate_dynamic_properties. Voting will close > 2021-11-26. > > Regards, > Nikita > As a reminder, voting on this RFC closes tomorrow. I usually don't specify an exact tim

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Dan Ackroyd
On Thu, 25 Nov 2021 at 05:05, Tim Starling wrote: > > Voting is now open for my RFC on locale-independent case conversion. > It seems popular, and likely to pass, but I voted no as the "Backward Incompatible Changes" section is missing which makes it hard to evaluate the impact. cheers Dan Ack

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Paul Crovella
On Thu, Nov 25, 2021 at 3:14 AM Tim Starling wrote: > > On 25/11/21 7:57 pm, Côme Chilliet wrote: > > > To reuse the example from the RFC, if I want to convert a UTF string to > > uppercase using Turkish rules and get dotted capital I, what should I use? > > For case-insensitive comparison you ca

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Nicolas Grekas
Le jeu. 25 nov. 2021 à 12:23, Tim Starling a écrit : > On 25/11/21 8:58 pm, Nicolas Grekas wrote: > > > The RFC says: > > because they also use isdigit() and isspace(), > > Does that mean "too much work needed"? I would totally understand that of > course but I hope someone could do these last mi

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Tim Starling
On 25/11/21 8:58 pm, Nicolas Grekas wrote: > > The RFC says: > > because they also use isdigit() and isspace(), > > Does that mean "too much work needed"? I would totally understand > that of course but I hope someone could do these last miles. > Yes. > > and because they are intended for natural

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Tim Starling
On 25/11/21 7:57 pm, Côme Chilliet wrote: > Hello, > > The RFC is missing information about alternatives: > Do all of these function have an mbstring version? The following functions have an mbstring version: strtolower, strtoupper, stristr, stripos, strripos. mb_convert_case() provides functiona

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Nicolas Grekas
Le jeu. 25 nov. 2021 à 11:34, Christoph M. Becker a écrit : > On 25.11.2021 at 10:58, Nicolas Grekas wrote: > > > Le jeu. 25 nov. 2021 à 10:47, Tim Starling a > > écrit : > > > >> and because they are intended for natural language processing > > > > I definitely do not agree with this argument a

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Christoph M. Becker
On 25.11.2021 at 10:58, Nicolas Grekas wrote: > Le jeu. 25 nov. 2021 à 10:47, Tim Starling a > écrit : > >> and because they are intended for natural language processing > > I definitely do not agree with this argument and it should be removed from > the RFC to me as it might add confusion in the

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Nicolas Grekas
Le jeu. 25 nov. 2021 à 10:47, Tim Starling a écrit : > On 25/11/21 7:55 pm, Nicolas Grekas wrote: > > > I voted yes because I want to see this happen but I raised a point in > https://externals.io/message/116141#116259 and didn't get an answer: > > Despite their name, I never used natcase functio

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Tim Starling
On 25/11/21 7:55 pm, Nicolas Grekas wrote: > > I voted yes because I want to see this happen but I raised a point > in https://externals.io/message/116141#116259 > and didn't get an answer: > > Despite their name, I never used natcase functions for n

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Dusk
On Nov 25, 2021, at 01:08, Hans Henrik Bergan wrote: > btw why is this code *not* getting dotted capital i on 3v4l? > https://3v4l.org/D1WG1#v7.4.26 > it gets ["res_hex"]=> string(2) "49" > > setlocale(LC_ALL, "Turkish"); Because "Turkish" isn't a locale. "tr_TR" is. https://3v4l.org/GD91W#v7.

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Hans Henrik Bergan
btw why is this code *not* getting dotted capital i on 3v4l? https://3v4l.org/D1WG1#v7.4.26 it gets ["res_hex"]=> string(2) "49" $str, "str_hex"=>bin2hex($str), "res"=>$res, "res_hex"=>bin2hex($res), ]); ?> On Thu, 25 Nov 2021 at 09:57, Côme Chilliet wrote: > Le jeudi 25 novembre 20

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Côme Chilliet
Le jeudi 25 novembre 2021, 06:05:37 CET Tim Starling a écrit : > Voting is now open for my RFC on locale-independent case conversion. > > https://wiki.php.net/rfc/strtolower-ascii Hello, The RFC is missing information about alternatives: Do all of these function have an mbstring version? Are tho

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Nicolas Grekas
Le jeu. 25 nov. 2021 à 06:05, Tim Starling a écrit : > Voting is now open for my RFC on locale-independent case conversion. > > https://wiki.php.net/rfc/strtolower-ascii > > Voting will close in two weeks, on 2021-12-09. > Hi Tim, I voted yes because I want to see this happen but I raised a poi

Re: [PHP-DEV] Need Update regarding PHP Travis CI Execution

2021-11-25 Thread Nikita Popov
On Wed, Nov 24, 2021 at 12:42 PM Chandranana Naik wrote: > > Hi Team, > > Recently Travis builds have stopped running for PHP. > We only see Cirrus and appveyor CI builds, however travis.yml exists in > the github repo. > > Could you please update if Travis builds will be started again or if the