Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126181 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 AE93C1A00BD for ; Fri, 27 Dec 2024 04:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1735273131; bh=GcVKrNkfCHUDqiPjmVLscejENJBiaH40Y6wRkAqyPsc=; h=Date:From:To:In-Reply-To:References:Subject:From; b=Tp2lm5/4hpgazwQ1pZCa8ylNNW0boTmVEZ51Fr+Ko9JDUJocZ0hX3SYDnBK3bJnMH sOdvpKXRGnIudrQC8T9LB3WBkO4fY8/wQQaEv3KvduORUs7IhXlW7BxByQ6FZNzErG wQsnmgBJgX5cItogBMECPXk4JVltB1Oa0dk36ltTo4nVXP/jOrX4d7G7H7Jh+Clkfg MCQEpopv/onjNcgePHc47SQvBtxpWhKspuWE8bhMAGwBPe/8GD/uDChYSuwUZKQgD7 gvB+GhjjYZ9yY4ABZLwE7dMsCGdSuk9oGTw2lZIz7qhbVbTnBHSUT9xQ4LZMMIQnug je9D/s63MrL2A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 74C3118004B for ; Fri, 27 Dec 2024 04:18:50 +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=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-b2-smtp.messagingengine.com (fhigh-b2-smtp.messagingengine.com [202.12.124.153]) (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 ; Fri, 27 Dec 2024 04:18:49 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 871702540062 for ; Thu, 26 Dec 2024 23:21:49 -0500 (EST) Received: from phl-imap-06 ([10.202.2.83]) by phl-compute-01.internal (MEProxy); Thu, 26 Dec 2024 23:21:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm2; t=1735273309; x=1735359709; bh=Els02Go60xzGiseVuyiJS BoCzjGJgNYsHB7QaKtIk6g=; b=naI3BPDPVASux/J0+dzbMGFP4rPEWKihibPli MOsYkbMdHSFIRJ0CwT3VwtmJ224r6jg9C3HtEmlZL2pZC9Ce2K4usxWUwy4PCtCI +1ZbpPH5hVGnofXSH9JJ5FXE30ypoVinIPwd9YSgNBoCuUSvjffAsysNwwFyuTaN TWYsRYR6XINTLUgB9W5pRLx5Y0VyLy5F3rwNckE+p0A/CMppgOfEg8xparKHDxkk /IIeJgcTyF0fwEArUrUeRR/6DNjvOHczogColNwoD1czFDc8ck+WXvg57ijXJUwT 2HEGgPOtEErvNRv7tvGKdfo6mJ7BEQdWwhBkZ24u5FR6kSZGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1735273309; x=1735359709; bh=E ls02Go60xzGiseVuyiJSBoCzjGJgNYsHB7QaKtIk6g=; b=KGhgnEDSbEULtzENR y3QZl/GAh/fHzpDH3QWLZVZXRPwMX9SidJGvxtY5fda+xyHWVuO3KlfXLJnlkzK4 QqRKdZsyGVILcgSpjVMH0KqjsrS7rKCG0O6ywE9LMUqR5eNVGPCKYGSQRaso/EOv 1kDd9m+2PNlyRw//B1lFlaUV1lbjQ55vUNxAPch46aRxV932ze5SGSiZYL/BAluv bCgv2v0DMQpcVmqau16pwPlw++4ENI42JgwmWGmJ1G5Ehnz489r0JQkg7aAuiHMy 5R0h0JJZoLXs76Pl4bEoO2/kFFmyPHDYYdqMVwcrsBFjlDOPDEyu7ImwFaVIY/2g MpGvw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudduledgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvffkjghfufgtgfesthejredtredttden ucfhrhhomhepfdfnrghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfih gvlhguthgvtghhrdgtohhmqeenucggtffrrghtthgvrhhnpeeuvedvudfhffffhfelueeh vdejvefgleegteegffetudefleehgeefvdehgeelteenucffohhmrghinhepphhhphdrnh gvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehl rghrrhihsehgrghrfhhivghlughtvggthhdrtghomhdpnhgspghrtghpthhtohepuddpmh houggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdr phhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 0FCC129C006F; Thu, 26 Dec 2024 23:21:49 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Thu, 26 Dec 2024 22:21:28 -0600 To: "php internals" Message-ID: In-Reply-To: References: <7228b901-a6a9-4aa9-8425-5ad51f66a853@gmx.de> <2556faa6-c233-4809-8999-afe1af40f4f1@app.fastmail.com> Subject: Re: [PHP-DEV] C Unit testing and mocking Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Thu, Dec 26, 2024, at 6:25 AM, Jakub Zelenka wrote: >> 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 run 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. (Whether 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 Ah, I can see how that could be interpreted that way, but that wasn't the intent. "C extensions" in this case means things like the MongoDB PECL extension, or Redis PECL extension. It's saying that if we wanted to start using Redis in the website somewhere (I dunno why, this is hypothetical), and that means using the Redis C PECL extension, that's allowed. --Larry Garfield