El vie, 26 ago 2022 a las 10:28, Peter Bowyer (<phpmailingli...@gmail.com>) escribió: > > Hi Juan, > > On Thu, 25 Aug 2022 at 17:02, juan carlos morales > <dev.juan.mora...@gmail.com> wrote: >> >> RFC: https://wiki.php.net/rfc/json_validate > > > Thanks for bringing forward this RFC. I am in favour of this change, as you > can't efficiently validate JSON in userland. > > Like Rowan I'm not convinced JSON_THROW_ON_ERROR belongs here. I can't think > of a case where more than a boolean response is needed. > > Peter
Seems that will be a good idea to take out the usage of the flag JSON_THROW_ON_ERROR after all. That was a nice and objective critic and I appreciate it. Thanks! I will take it out of the implementation. Regards RFC: https://wiki.php.net/rfc/json_validate Implementation: https://github.com/php/php-src/pull/9399 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php