Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118470 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69312 invoked from network); 25 Aug 2022 19:41:11 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Aug 2022 19:41:11 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A0E4D1804AA for ; Thu, 25 Aug 2022 12:41:08 -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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, 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-ua1-f50.google.com (mail-ua1-f50.google.com [209.85.222.50]) (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 ; Thu, 25 Aug 2022 12:41:08 -0700 (PDT) Received: by mail-ua1-f50.google.com with SMTP id j10so5963848uaq.12 for ; Thu, 25 Aug 2022 12:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc; bh=IgI0KGiR/ZcRfMb1fIhZYvv5N0Jhyvmu9JY4yOoIYwo=; b=QJN+rIfRGbwlEDlwE5p6jX5x9IXCTsn4wsQ3KwRlLloi4xpaG4akD4IiZVQmcp/DOF zyYRqrVTX/8QxEGV2grC7wo2g/nCLRxQ6B10BFOBC8zV01ALOITvwCgv4r9hxRwh865D d3FQMXjhw7e/HCCirPt6WNm4PYHtFzTpBxFBjxNA4+8PsJV1nRQtPXh+A8Fb7y1dgd0a 7aQJtFoX1+bAAJwIwSAQCJVzu9Ly/mOyPitTRA7dm5SsE0V6V6Z2c8R7lgnFCDU5qI0n 9odmc9ciQPhzO0lqApm0CTM2pHGneL8BwWYN9tWjBnUhnaMkLPYd0v9+/hFq2sDPZAcA vx/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc; bh=IgI0KGiR/ZcRfMb1fIhZYvv5N0Jhyvmu9JY4yOoIYwo=; b=T+Vx6wfYE8pDNIBZd5UlIseSle93Vj+bIEbG2BFvBBhPydKGchSgr4KPZP55F70IFM g7G9Tdp4H1drIqBXQVE0xJMoUJrBm/bkO5GfVzj9ofXHFYV9jJEVyHMHZSFWlYO358Gk v/q+OLK644OrGPa0WI/cZ3s3WSOyB8j8wm0GdIvg48iPhc8bEbSsgmBATfAo5vsHD5G8 AEFLDxaO9YGE+GXXVBm7j2ixhm/+tO8N/u/O65xY0qJA6wLIy/Zd2MmXCJr4y1j94s9F 6MbNMlfA8ms8c8jp02hjG4jxvOvAX8TuvTN7Q/60s64KpTshEyGSrit0VANVqZzEkK4w jxIA== X-Gm-Message-State: ACgBeo1+qY72jwzdunHD+WXcTYy/r5ohR/30XVnVEysg1I3854Vu8zmG nlQ5Lm9jj5ia2PhfmoNVLIjLUWXZvOXT+tPvPD8= X-Google-Smtp-Source: AA6agR7Or6yisURVL2EigV25I/Uyg/WDqiL1Ro/LCBUeTHWdLqAK3ZHuy+EMp7z6HGm6dwSVhNfy+p6tZhTgh3WhlK4= X-Received: by 2002:ab0:4973:0:b0:37f:27c2:59fb with SMTP id a48-20020ab04973000000b0037f27c259fbmr2177381uad.80.1661456467511; Thu, 25 Aug 2022 12:41:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 25 Aug 2022 21:40:56 +0200 Message-ID: To: David Gebler , PHP Internals List Content-Type: multipart/alternative; boundary="0000000000008e4c0b05e715fa4a" Subject: Re: [PHP-DEV] RFC json_validate() - status: Under Discussion From: dev.juan.morales@gmail.com (juan carlos morales) --0000000000008e4c0b05e715fa4a Content-Type: text/plain; charset="UTF-8" Hello David, thanks for your feedback. I believe that the answer to most of your concerns/questions related to other projects that would benefit out of something like this is already answered by me in the RFC. I mentioned major PHP projects that will directly benefit out of something like this. About the demand, well, that is also being written in the RFC. Regarding the question in StackOverflow, was just mentioned to expose the "demand" of validating a json string, and is one of the most ranked questions, is in the top 10 of questions with php && json tags. I believe that such a thing is talking by iself. Providing real use cases wont make a difference, because the number of examples are infinite honestly. Yes there are userland packages that can do this for us, but in big products on big companies, relying on 3rd party packages is not always cool, I have being experiencing that in my company actually. Regarding examples of raising issues ... there are a LOT in github, and the only possible solution is always to increase the memory limit or use a 3rd party package (which as I said, is not always suitable). But ... lets be objective, or try to be at least ... PHP has a parser already, this functionality is just allowing us to use it without the need to consume memory. I see it useful, actually, this RFC is the result of a real need we have in my current company at the moment, and after digging around the internet I found hat we were not the only ones. Thanks for taking our time on this, I appreciate it. --0000000000008e4c0b05e715fa4a--