Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119643 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 18398 invoked from network); 1 Mar 2023 16:27:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Mar 2023 16:27:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7F1EB180538 for ; Wed, 1 Mar 2023 08:27:26 -0800 (PST) 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,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-f47.google.com (mail-ua1-f47.google.com [209.85.222.47]) (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 ; Wed, 1 Mar 2023 08:27:26 -0800 (PST) Received: by mail-ua1-f47.google.com with SMTP id e27so4066976uan.4 for ; Wed, 01 Mar 2023 08:27:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677688045; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zoZXF6uhtBiorgAwfbbP1B4ZD0t4XKlFUDBKnKD98yA=; b=JqVh6sV3sWTMIc1iv5R0WlAWDw7Co35PvHLCCANYXFEP8JsKUDovt2kKWPZLVrmtwa gATtJKCS9bcr69mwOboPT1ahxAWft0NKRivXxmKo8ZZVHlg3lhuIcrpJD796Dk6nsnik TzcnOZVYzOYCGq8vAEDkJTql3BFa5r322hnPSMbpmpjS6aPzT6E3n8EiLDpXZgEARxMW 6uPIdDWeJSlMfp0TCJxScRCZML82LbmJPPwzM/DMIu0DGG2zvI3PXjS3BRGMg+woLnyM mm+NST/t1ynOPo2sFsjTS5eXzHFKkUgEPyk1GSIzfrSjic1RjiJJfFzWEUotZrjKsEbr 772w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677688045; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zoZXF6uhtBiorgAwfbbP1B4ZD0t4XKlFUDBKnKD98yA=; b=nGmia0aM6y8TWiwOqVxg68DGhTrPFBsJYYSkkjtDsHKXs5wucFdLJPKar9Ygww0NtK CNqXqsTOTmWuW1lgajiBC0SZgO93RJW/mjI1Qe+kQotDv9KNjE1x8NcC7lpSPl5nk6oC SQ5E/ZW+/V5/dNJXGNaJCCUhvVh+f8xvAG/XxneLKJMrs0gGer2fRhwJ4xA6uN9wWNQt MTCxGrdu7WLatF/12sSH91+3hZIFEttmCX4rnRGOX7B+j0fV73I7I4ExzBo7yqIGt7d7 RjKctq5aA3k2tgia434gQ+WzSljC/rDpQhOS6WVUM1aa7TBTeusvkboZYpws3cUOPkgh GeIA== X-Gm-Message-State: AO0yUKWIHPY+jYZlFye5B5mYy40H17oOqrhoZ1awFKL8e93wp0OX2HRS LT6h2zIzbqXYM47vDuL9rRAw50OfZZdcH3put4C695PX X-Google-Smtp-Source: AK7set/eKJjrVlHqYOlybbxAzCwnxJl9RaEIkh8GRvhotpHiIOmwptgAodl+SEEV7DV+gc0ma8mHguuMV2rM4wmfQOM= X-Received: by 2002:ab0:5b01:0:b0:68b:8b67:8209 with SMTP id u1-20020ab05b01000000b0068b8b678209mr4050872uae.2.1677688045272; Wed, 01 Mar 2023 08:27:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 1 Mar 2023 12:27:14 -0400 Message-ID: To: =?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?= Cc: Jakub Zelenka , juan carlos morales , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000fb847505f5d92fb9" Subject: Re: [PHP-DEV] RFC Idea - json_validate() validate schema From: deleugyn@gmail.com (Deleu) --000000000000fb847505f5d92fb9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 1, 2023, 12:02 PM Micha=C5=82 Marcin Brzuchalski < michal.brzuchalski@gmail.com> wrote: > Hi Deleu, > > =C5=9Br., 1 mar 2023 o 16:54 Deleu napisa=C5=82(a): > >> >> >> On Wed, Mar 1, 2023 at 9:36=E2=80=AFAM Micha=C5=82 Marcin Brzuchalski < >> michal.brzuchalski@gmail.com> wrote: >> >>> >>> Do we really need this in core? What makes it less usable as an >>> extension? >>> >>> Cheers, >>> Micha=C5=82 Marcin Brzuchalski >>> >>> > >>> >> >> Extensions are not easy to install and have a complex distribution syste= m >> that differs greatly between Windows, Debian, Ubuntu, Alpine Linux, AWS >> Lambda, etc. I wish one day we could have something as simple and >> ubiquitous as Composer installing PHP extensions, but until then the les= s >> amount of extensions the better for end users. >> > > I agree with your last thought. The fewer extensions the better for end > users but what I have a problem with is constantly adding functions to th= e > standard library instead of writing a library that fulfills the need. > Along with extensions the fewer functions/classes are bundled the better > for end users. > > Cheers, > Micha=C5=82 Marcin Brzuchalski > If we're being practical here, json_validate has been proposed and accepted already, so the discussion is not whether to add a new function or not, but instead whether to improve it to also validate schema. So the concern doesn't seem relevant. But for the sake of argument, the addition of it has no negative impact on me while with extensions there are, so it's no-brainer for me. > --000000000000fb847505f5d92fb9--