Re: RFC json_validate() - status: Under Discussion

From: Date: Fri, 26 Aug 2022 06:17:31 +0000
Subject: Re: RFC json_validate() - status: Under Discussion
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-118485@lists.php.net to get a copy of this message
On Aug 25, 2022, at 21:47, Michał Marcin Brzuchalski <michal.brzuchalski@gmail.com> wrote: > The same goes here and I'm not convinced we should introduce next small function that can > be simply implemented in user land. What "simple implementation in userland" do you have in mind? Can you provide an example? json_decode() is not an acceptable substitute here -- as David Gebler has observed, decoding a large JSON structure can have a significant impact on memory usage, even if the data is immediately discarded. Any implementation based on string processing, on the other hand, is likely to be dramatically slower, and may have subtle differences in behavior from PHP's JSON parser.

« previous php.internals (#118485) next »