Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118491 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46488 invoked from network); 26 Aug 2022 09:20:05 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Aug 2022 09:20:05 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 797C41804B5 for ; Fri, 26 Aug 2022 02:20:04 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-vk1-f177.google.com (mail-vk1-f177.google.com [209.85.221.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 26 Aug 2022 02:20:04 -0700 (PDT) Received: by mail-vk1-f177.google.com with SMTP id i67so392259vkb.2 for ; Fri, 26 Aug 2022 02:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=KpwyhDaSx65DvmVKMwolcXjoMmdK9i48in1D4nA5v9s=; b=iL+mYf4VHrleYCjPEUCPfFsuXn5wCCIKWg9BGnzUDYfjNC/J/uA02ikH8Y72w6QCcw qYJuxrJCcmKVE135aTfZ7+HlNMZD14JaKU0hKrfddZg7T738gTGwcUKfXBfwdlEymtIb ShuRmj01lK4ZdH8k3rViLXF1ShJsq1JFVswh05cKJF3ydPcRYatAZgZjMPLdLYpP/nwL GsULhyWBB3xXc/+xsIztI2r3bw1rZ+9PG6DZU2B39HNVyb2udEN4V8nejVwm6ZKQUfG6 mjmscrhZ8ooOCIqPuDU7toIRt7Pb+dT0C2Ux65xHiXYqsxZioPqkg7yO5sCQ218oJT+v 1bLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=KpwyhDaSx65DvmVKMwolcXjoMmdK9i48in1D4nA5v9s=; b=fSKzSGeZ/TmmK+VKD8u/uGFwrVOv/XQ37jyTF4/X+i6Gjc2koP4OU1eWQzF3TM1spz npWm7kHFHHPPg2qCusGsdjSHSJBgo+TNbOtNX9oEyrRfgvLOYJv80mvdEsS9gnNkdjLq Zs3obI1eX5Y33ACCUqPVw6/Vqre2ZhwMi3u3rEZ1CCE5gyD1htvtWGK8AmtEO7plHzll MP7DQzMNe31Oq51tmXW8aypnpy8Qz3Y1Vf6eEDZ6OLgJqzJRN91wEO2d0TJ4P8a3/2/2 yvqkeKAeEjIaGgMdnsiZschawbgXuI5xjhaLbpTRGSgsvnD0H9xkH99TCsH3XuUpOdEq 6vGA== X-Gm-Message-State: ACgBeo1CyPD+7ydB2K3ui7dvnvy10ZZbKL72nrOK3JZC/McO0UJcfSyY XGCkITnbl989Tpp9iKJit37u6NFiLrgSNhK6VGM= X-Google-Smtp-Source: AA6agR6aKZgY6Z/C7jaIm4iLpL+TTRmLLqpaawsN1af1reUgACQLRsjc1K1MmIqtuz7aL99g+jVQ6ovqDcUsaOoStJI= X-Received: by 2002:a1f:258f:0:b0:377:500f:8e59 with SMTP id l137-20020a1f258f000000b00377500f8e59mr2777274vkl.11.1661505603372; Fri, 26 Aug 2022 02:20:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 26 Aug 2022 11:19:52 +0200 Message-ID: To: Peter Bowyer Cc: PHP Internals List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC json_validate() - status: Under Discussion From: dev.juan.morales@gmail.com (juan carlos morales) El vie, 26 ago 2022 a las 10:28, Peter Bowyer () escribi=C3=B3: > > Hi Juan, > > On Thu, 25 Aug 2022 at 17:02, juan carlos morales wrote: >> >> RFC: https://wiki.php.net/rfc/json_validate > > > Thanks for bringing forward this RFC. I am in favour of this change, as y= ou can't efficiently validate JSON in userland. > > Like Rowan I'm not convinced JSON_THROW_ON_ERROR belongs here. I can't th= ink 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