[PHP-DEV] RFC json_validate Accepted

2022-10-07 Thread juan carlos morales
I am glad to announce that the RFC for json_validate() function has been Accepted, 18 positive votes and 1 negative vote. https://wiki.php.net/rfc/json_validate I still have to do some adjustments to the code that is under review, but all good. Thanks a lot to everyone that participated and

Re: [PHP-DEV] RFC json_validate() - status: Under Discussion

2022-10-07 Thread James Gilliland
Don't think it makes a difference to the discussion at this point but just thought I'd point out there's another example missing from the RFC list that almost everyone probably has installed with their projects.

Re: [PHP-DEV] Experimental features

2022-10-07 Thread Alex Wells
> On 7 Oct 2022, at 18:44, Larry Garfield wrote: > > On Fri, Oct 7, 2022, at 5:58 AM, G. P. B. wrote: >> On Fri, 7 Oct 2022 at 07:57, Christian Schneider >> wrote: >> >>> But now to my main point: You are talking about the most simple and >>> isolated case, a new function. >>> >> >> I

[PHP-DEV] Re: Pre RFC - Additions to the randomizer

2022-10-07 Thread Christoph M. Becker
On 05.10.2022 at 23:44, Joshua Rüsweg via internals wrote: > PS: Since this is my first contribution, someone needs to give me karma > to open an RFC. My account name is `josh`. RFC karma granted. Best of luck with the RFC! -- Christoph M. Becker -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] Experimental features

2022-10-07 Thread Larry Garfield
On Fri, Oct 7, 2022, at 5:58 AM, G. P. B. wrote: > On Fri, 7 Oct 2022 at 07:57, Christian Schneider > wrote: > >> But now to my main point: You are talking about the most simple and >> isolated case, a new function. >> > > I agree, and for most intent and purposes a function can be polyfilled in

Re: [PHP-DEV] Preventing stack overflows

2022-10-07 Thread Arnaud Le Blanc
On 07/10/2022 16:14, Yasuo Ohgaki wrote: The root cause that users cannot understand what happened is this: $ php -n -r 'set_error_handler(function ($severity,$message, $filename, $lineno) { throw new ErrorException($message, 0, $severity, $filename, $lineno); });  function f() { f(); } f();'

Re: [PHP-DEV] Preventing stack overflows

2022-10-07 Thread Yasuo Ohgaki
2022年10月7日(金) 22:32 Arnaud Le Blanc : > Hi internals, > > I would like to propose a way to detect stack overflows before they > happen, with the goal of improving debugability. > > Stack overflows are caused by excessive stack usage, typically due to > deep recursions. Recursion in PHP doesn't

[PHP-DEV] Preventing stack overflows

2022-10-07 Thread Arnaud Le Blanc
Hi internals, I would like to propose a way to detect stack overflows before they happen, with the goal of improving debugability. Stack overflows are caused by excessive stack usage, typically due to deep recursions. Recursion in PHP doesn't use recursion internally, but some constructs

Re: [PHP-DEV] Experimental features

2022-10-07 Thread G. P. B.
On Fri, 7 Oct 2022 at 07:57, Christian Schneider wrote: > But now to my main point: You are talking about the most simple and > isolated case, a new function. > I agree, and for most intent and purposes a function can be polyfilled in userland. So this is the least interesting case. However, I

Re: [PHP-DEV] Experimental features

2022-10-07 Thread Christian Schneider
Am 06.10.2022 um 23:40 schrieb David Rodrigues : > But keep in mind that these features are already intended for PHP, and it > is not a "feature test" or suggestion. The voting process is mandatory and > the feature must already be set to "accepted". Just so I understand what you are saying: You