Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126178 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 7B0761A00BD for ; Thu, 26 Dec 2024 12:26:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1735215780; bh=cLTxiItbh4S+tGfrPPeUxxxEAkh2fT7wSGriSfKAGC4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Lht59H6BVvfxZzryp9rS5Ouw8B3TxcgZzHgNL+/9+bqWxnIvOunIT387r3PLfrDp1 d9aXiOaii1U75o6Ycv8Pum0YwCXYWGnMsDzM2zUsT6oU7RrI8hoPHB4hUYYvfazXjF WffJWdH3DnDvxxDQtPGTDAMRMjqmfLnZ3FzFldSiG+zXo/2+ldOMwziAYmZhDRyNpU 0FsJnZYcdb6v7zl372BQi9aH7vd6LkWwl/K39MLKlvx2pRE833ZkHKMM3kda60w9bX 18V4+g4r+cjYSAa6lKMakdPsp+Us+KMSR/g2btYyYDEdasT3uu+oFlbrLD9CiVlb76 UkWyzY9HUF2XA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 22647180082 for ; Thu, 26 Dec 2024 12:23:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_50,DMARC_NONE, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 26 Dec 2024 12:22:59 +0000 (UTC) Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-5f2ed0b70d6so2537310eaf.3 for ; Thu, 26 Dec 2024 04:25:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735215959; x=1735820759; 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=7TPgNlHGBgek/VFJSVpI4fork0b7qYvObRTKS3XmiBQ=; b=oY1P5s8SuCIFfuyXRXCfWupFIHjEcRz+zpse5S06qKRxguYqR95YW81rqEbTfRhxmu sCi1ca0SmVSfiWrhEyD8Et1VVdcKOrL8sl1/B75LEaY4lSxsPzTiYJQPmaJN2ZUGhU/W 8tZ1dvEmz1ePyRHCpqn2P+yb3G8X+OJmq+OJVZyeH0DrtF5PR6Hsq9DASR/6DYQA8dvB XuJy92ul46LpB0D5kc30GogjBNMrb3rcY8Ynx+x6QJrV31wDNAcM7V5pgq+vU52/7r7K fNO5i1tqXYCh4p9L7GCD97Vx/Ws4Mb/gKm/lYM7NFxZSL6d6gJLQhEVr/1BFDdCONQrI qJBQ== X-Gm-Message-State: AOJu0Yx94csMlZtACjjJrjt+YBEkgSIyvUHIETou0KBT0FCGoj701Yxw 9kW0+v1vQnZ5IUX5PulVRHM9CN50iXy3/wBHaJ34vKgJ0Xux0CzZg+m/VroerplJBBZ5QZHyHJS SDUGPtP0KabWAHPB3bhUTXiWN4dwhwUgY X-Gm-Gg: ASbGncuJ+qH/VWqDF+wytIpviVxB8xSmIPsKM6d/+UcpL/uqFpiqjIRzZWJUT8OMsP9 zT9e9ht03eosdulRQQT06vGrSMwvSuVwDW9w= X-Google-Smtp-Source: AGHT+IGxHOpnmkBYpXmRoKCmEybybDsOlmIP39+mvejvJSIg1u7nZO9CkxUG7UpWpGh+QCRSIl9qcyEEli+/Cqkn9JQ= X-Received: by 2002:a05:6870:b9c9:b0:29e:70c7:a3eb with SMTP id 586e51a60fabf-2a7fb00b2dcmr11228365fac.7.1735215959367; Thu, 26 Dec 2024 04:25:59 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <7228b901-a6a9-4aa9-8425-5ad51f66a853@gmx.de> <2556faa6-c233-4809-8999-afe1af40f4f1@app.fastmail.com> In-Reply-To: <2556faa6-c233-4809-8999-afe1af40f4f1@app.fastmail.com> Date: Thu, 26 Dec 2024 13:25:48 +0100 Message-ID: Subject: Re: [PHP-DEV] C Unit testing and mocking To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="000000000000dde91e062a2b726b" From: bukka@php.net (Jakub Zelenka) --000000000000dde91e062a2b726b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Dec 24, 2024 at 8:40=E2=80=AFPM Larry Garfield wrote: > On Sun, Dec 22, 2024, at 9:23 AM, Jakub Zelenka wrote: > > On Mon, Dec 16, 2024 at 9:05=E2=80=AFPM Christoph M. Becker > wrote: > >> On 16.12.2024 at 14:18, Jakub Zelenka wrote: > >> > There was a suggestion of RFC but that might be a bit too much as > it's just > >> > an internal change / addition. But certainly some overview on > internals > >> > should be done so writing this instead. > >> > >> I'm fine with not going through the RFC process, although the policy[1= ] > >> police might come after us. :) > >> > > > > I think it fits to all inclusion criteria and doesn't go against any > > exclusion. Maybe except that "de facto standard" but for our use there > > was really no other option as I mentioned in my comparison so it was > > the only library left for our needs if there is only one, then it's "de > > facto standard" we could say. > > > > Btw. It was probably mistake to set that policy for C code because we > > don't really need to care if PHP recommends any tool there - I > > completely missed it when voting for it. This should be just for PHP > > application that we care about. We should modify that policy > > accordingly - I need to make a list of changes that to the policies as > > there are quite a few points. > > > > Regards, > > > > Jakub > > Point of order: The recently adopted 3rd party code policy does not apply > to C tooling. It mentions "PHP Tooling", which is defined as "PHP code r= un > by PHP.net". The website, docs tooling, etc. It has no bearing on what = C > libraries or toolchains can or should be used in php-src itself. (Whethe= r > that's unit testing, url parsers, HTML parsers, threading libraries, etc.= ) > > Ah ok, thanks for the clarification. This part (Definitions -> Librarires) is slightly confusing in this regard though: > Refers to existing third party code packages or tools, either C extensions or PHP code, maintained by someone other than the PHP Internals team. Specifically that C extensions part made it sound like it also applies to C code. But after reading the introduction, it's probably more as you say, and it applies only to PHP code. Cheers Jakub --000000000000dde91e062a2b726b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Dec 24,= 2024 at 8:40=E2=80=AFPM Larry Garfield <larry@garfieldtech.com> wrote:
On Sun, Dec 22, 2024, at 9:23 AM, Jakub Ze= lenka wrote:
> On Mon, Dec 16, 2024 at 9:05=E2=80=AFPM Christoph M. Becker <cmbecker69@gmx.de> = wrote:
>> On 16.12.2024 at 14:18, Jakub Zelenka wrote:
>> > There was a suggestion of RFC but that might be a bit too muc= h as it's just
>> > an internal change / addition. But certainly some overview on= internals
>> > should be done so writing this instead.
>>
>> I'm fine with not going through the RFC process, although the = policy[1]
>> police might come after us. :)
>>
>
> I think it fits to all inclusion criteria and doesn't go against a= ny
> exclusion. Maybe except that "de facto standard" but for our= use there
> was really no other option as I mentioned in my comparison so it was <= br> > the only library left for our needs if there is only one, then it'= s "de
> facto standard" we could say.
>
> Btw. It was probably mistake to set that policy for C code because we =
> don't really need to care if PHP recommends any tool there - I > completely missed it when voting for it. This should be just for PHP <= br> > application that we care about. We should modify that policy
> accordingly - I need to make a list of changes that to the policies as=
> there are quite a few points.
>
> Regards,
>
> Jakub

Point of order: The recently adopted 3rd party code policy does not apply t= o C tooling.=C2=A0 It mentions "PHP Tooling", which is defined as= "PHP code run by PHP.net".=C2=A0 The website, docs tooling, etc.= =C2=A0 It has no bearing on what C libraries or toolchains can or should be= used in php-src itself.=C2=A0 (Whether that's unit testing, url parser= s, HTML parsers, threading libraries, etc.)


Ah ok, thanks for the clarification. This part (Definitions -> = Librarires) is slightly confusing in this regard though:

>=C2=A0R= efers to existing third party code packages or tools, either C extensions o= r PHP code, maintained by someone other than the PHP Internals team.
<= div>
Specifically that C extensions part made it sound like i= t also applies to C code. But after reading the introduction, it's prob= ably more as you say, and it applies only to PHP code.

=
Cheers

Jakub
--000000000000dde91e062a2b726b--