[PHP-DEV] Re: Improving PRNG implementation.

2020-12-18 Thread zeriyoshi
On Wed, Dec 16, 2020 at 8:46 AM zeriyoshi wrote: Hello. I have created an account on the PHP.net wiki to create an RFC about this. Can you grant me editing privileges? As for suggestion two, I sent a PR to php-src on GitHub. https://github.com/php/php-src/pull/6520 Fortunately, Nikita seems to

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

2020-12-18 Thread Larry Garfield
On Fri, Dec 18, 2020, at 1:40 PM, Olle Härstedt wrote: > What about matching on a variable's type? > > ``` > match { > $var: string => "is a string" > $var: array => "something else" > } > ``` > > This could be used with flow-sensitive typing, e.g. assume the type of $var > being string in th

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

2020-12-18 Thread Olle Härstedt
What about matching on a variable's type? ``` match { $var: string => "is a string" $var: array => "something else" } ``` This could be used with flow-sensitive typing, e.g. assume the type of $var being string in the string block. Psalm works like this for if-statements. Also consider the ca

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

2020-12-18 Thread Rowan Tommins
Hi Máté, On 18/12/2020 16:43, Máté Kocsis wrote: I think this is mostly not about application-level, rather than infrastructure-level issues, at least according to our use-cases. I think we may actually just be saying the same thing in different terms: in this message, you refer to a "heav

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

2020-12-18 Thread Máté Kocsis
Hi Rowan, I'd be likely to treat it similarly to > the Linux OOM killer: if it was ever actually invoked, I would be > investigating how to fix my application. > I think this is mostly not about application-level, rather than infrastructure-level issues, at least according to our use-cases. For e

[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-18 Thread Nikita Popov
On Tue, Dec 15, 2020 at 11:06 PM Nikita Popov wrote: > 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)

[PHP-DEV] Re: [RFC] Restrict $GLOBALS usage

2020-12-18 Thread Nikita Popov
On Fri, Dec 4, 2020 at 11:52 AM Nikita Popov wrote: > Hi internals, > > I would like to propose the following RFC, which restricts certain rare > usages of $GLOBALS. This change will improve performance, reduce internal > implementation complexity, and fix a very large class of bugs relating to >