Re: [PHP-DEV] RFC Idea - is_json - looking for feedback

2022-07-30 Thread Oleksii Bulba
> $memoryAfter = memory_get_usage(true) / 1024 / 1024; I see that you used `memory_get_usage` that shows memory usage at the time of the function call. As far as I understand, your function does not return any value, so I suspect that it is obvious that the memory usage after the function call is

Re: [PHP-DEV] RFC Idea - is_json - looking for feedback

2022-07-30 Thread juan carlos morales
El sáb., 30 de julio de 2022 11:58, Oleksii Bulba escribió: > > $memoryAfter = memory_get_usage(true) / 1024 / 1024; > > I see that you used `memory_get_usage` that shows memory usage at the time > of the function call. > As far as I understand, your function does not return any value, > so I sus

Re: [PHP-DEV] RFC Idea - is_json - looking for feedback

2022-07-30 Thread Nikita Popov
On Fri, Jul 29, 2022 at 4:27 PM juan carlos morales < dev.juan.mora...@gmail.com> wrote: > I am following the RFC guideline for the first time. ( > https://wiki.php.net/rfc/howto) > > As suggested there, I am here to get a feeling from you, regarding the > following RFC for PHP. > > # Change (draf

Re: [PHP-DEV] RFC Idea - is_json - looking for feedback

2022-07-30 Thread David Gebler
On Sat, Jul 30, 2022 at 3:01 PM Nikita Popov wrote: > On Fri, Jul 29, 2022 at 4:27 PM juan carlos morales < > dev.juan.mora...@gmail.com> wrote: > > > I am following the RFC guideline for the first time. ( > > https://wiki.php.net/rfc/howto) > > > > As suggested there, I am here to get a feeling

Re: [PHP-DEV] RFC Idea - is_json - looking for feedback

2022-07-30 Thread juan carlos morales
El sáb., 30 de julio de 2022 16:48, David Gebler escribió: > > > On Sat, Jul 30, 2022 at 3:01 PM Nikita Popov wrote: > >> On Fri, Jul 29, 2022 at 4:27 PM juan carlos morales < >> dev.juan.mora...@gmail.com> wrote: >> >> > I am following the RFC guideline for the first time. ( >> > https://wiki.p

Re: [PHP-DEV] RFC Idea - is_json - looking for feedback

2022-07-30 Thread Deleu
On Sat, Jul 30, 2022, 4:48 PM David Gebler wrote: > > > What I'm asking is what's the practical use for this proposed function? > Where are you likely to need to know if a string is valid JSON but not have > to (try to, with error handling) parse it almost immediately afterwards > anyway? > I'm