Re: [PHP-DEV] [RFC] [Discussion] Measuring maximum execution time based on wall-time

2020-12-15 Thread Máté Kocsis
Hi Rowan and Benjamin, we talked about this before and I think it's a good addition. Two > suggestions to improve the RFC: > Thanks for the ideas, I'll incorporate more details about the interaction of these settings. And I've just collected a few examples when my proposal would be useful: https:

Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Remove mysqlnd_extension enum: ext/mysqli/mysqli.c ext/mysqli/mysqli_warning.c ext/mysqlnd/mysqlnd.h ext/mysqlnd/mysqlnd_enum_n_def.h ext/mysqlnd/mysqlnd_resul

2020-12-15 Thread Kamil Tekiela
Wait, you can still use mysql ext with PHP 8? I thought we got rid of it once and for all in PHP 7.0. What is the motivation of keeping that extension alive with PHP 8? Who is testing for the compatibility? Could you share some information on how to compile MySQL ext against PHP 8? On Tue, 15 Dec

[PHP-DEV] Re: [PHP-CVS] com php-src: Remove mysqlnd_extension enum: ext/mysqli/mysqli.c ext/mysqli/mysqli_warning.c ext/mysqlnd/mysqlnd.h ext/mysqlnd/mysqlnd_enum_n_def.h ext/mysqlnd/mysqlnd_result.c

2020-12-15 Thread Nikita Popov
On Tue, Dec 15, 2020 at 10:00 PM Dmitry Stogov wrote: > Hi Nikita, > > ext/mysql is not a part of the main php source tree, but it still works > and is still useful. > Why do you kill it and why silently (may be I missed discussion)? > What is the motivation? > > Thanks. Dmitry. > I'm currently

[PHP-DEV] Re: [PHP-CVS] com php-src: Remove mysqlnd_extension enum: ext/mysqli/mysqli.c ext/mysqli/mysqli_warning.c ext/mysqlnd/mysqlnd.h ext/mysqlnd/mysqlnd_enum_n_def.h ext/mysqlnd/mysqlnd_result.c

2020-12-15 Thread Dmitry Stogov
Hi Nikita, ext/mysql is not a part of the main php source tree, but it still works and is still useful. Why do you kill it and why silently (may be I missed discussion)? What is the motivation? Thanks. Dmitry. On Tue, Dec 15, 2020 at 12:58 PM Nikita Popov wrote: > Commit:362c29241db872cf7

Re: [PHP-DEV] [RFC] Short-match

2020-12-15 Thread Sara Golemon
On Tue, Dec 15, 2020 at 1:37 PM Andreas Leathley wrote: > ```php > $this->handler = match { > null === $var => 'null', > true === $var => 'true', > false === $var => 'false', > is_string($var) => '"'.$var.'"', > is_callable($var) => 'callable', >

Re: [PHP-DEV] [RFC] Short-match

2020-12-15 Thread Andreas Leathley
On 15.12.20 20:08, Sara Golemon wrote: Or even better with existing syntax: ```php $this->handler = match($var) { null, true, false => json_encode($var), default => \is_string($var) ? "\"$var\"" : \rtrim(\print_r($var, true)), }; I appreciate that this is a specific counter-example to your

Re: [PHP-DEV] [RFC] Short-match

2020-12-15 Thread Sara Golemon
On Mon, Dec 14, 2020 at 5:30 PM Andreas Leathley wrote: > With match this becomes much more concise: > > ```php > $this->handler = function ($var): string { > return match { > null === $var => 'null', > true === $var => 'true', > false === $var => 'false', >

[PHP-DEV] PHP-7.3 branch is closed

2020-12-15 Thread Christoph M. Becker
Hi, PHP-7.3.26 has been branched and will be the last 7.3 bugfix release. PHP-7.3 now enters security support for 1 year, see . Regards, Christoph -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub

Re: [PHP-DEV] [RFC] Short-match

2020-12-15 Thread Larry Garfield
On Tue, Dec 15, 2020, at 3:00 AM, Nikita Popov wrote: > On Mon, Dec 14, 2020 at 6:34 PM Larry Garfield > wrote: > > > I present to Internals this tiny RFC to follow up on the match() > > expression RFC from earlier in the year. There was solidly positive > > support for this shortcut previously

Re: [PHP-DEV] [RFC] Short-match

2020-12-15 Thread Ilija Tovilo
Hi internals > With match this becomes much more concise: > > ```php > $this->handler = function ($var): string { > return match { > null === $var => 'null', > true === $var => 'true', > false === $var => 'false', > \is_string($var) => '"'.$var.'"', >

Re: [PHP-DEV] [RFC] Short-match

2020-12-15 Thread Nikita Popov
On Mon, Dec 14, 2020 at 6:34 PM Larry Garfield wrote: > I present to Internals this tiny RFC to follow up on the match() > expression RFC from earlier in the year. There was solidly positive > support for this shortcut previously but it was removed for simplicity at > the time, with the intent t

Re: [PHP-DEV] [RFC] Short-match

2020-12-15 Thread Olle Härstedt
On Tue, 15 Dec 2020, 00:30 Andreas Leathley, wrote: > I checked in my vendor directory for currently used switch(true) usages, > there were 96 matches. It is often used when handling an unknown value > and needing to display or convert it, as there the structure of a switch > is easier to scan co