Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121238 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 78144 invoked from network); 5 Oct 2023 19:19:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Oct 2023 19:19:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B04471804BC for ; Thu, 5 Oct 2023 12:19:00 -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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 5 Oct 2023 12:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1696533538; bh=aZPWPDDTbnLOKMR4N3Xce+fQ1GmrmvvOvWCv8gmrlfQ=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=cSrDPLo+SNNnF1IahISp8w/z4EgUq7dtJv7meh4N/GsgyE8Sy3sR4WbfYyu3qS0aZ 0vMD3AhwFJ0bGkEbcYhSCv4+M5bt/u/WPwhGPpe9COsz+tFNoup6plcRbfyS9KmONd gB4VRBpWSiFHbNZ4H1NE557HCkFEV/QwAHesY/CQ5REB6lgBPKnMubcuCS3Nt86HX/ bFFQwcJHGaS/0YRpSCZ/puRb3yvyaqzczyYeEJH9vwpQzAVX6cVObuxmFhkxp9vq/4 Ovk5ImqSjEpeJ05wW/lndgSyQtlk3F9s82iqJL/exSPkU1CUCKYp1ePXsF9LIqLlM1 XkhED/6zV6aRA== Message-ID: <08d4550f-50af-c8f7-222d-572825a57b98@bastelstu.be> Date: Thu, 5 Oct 2023 21:18:57 +0200 MIME-Version: 1.0 Content-Language: en-US To: internals@lists.php.net References: <41A81D98-63F2-43AD-BB3C-44CBF8E7BE3C@php.net> In-Reply-To: <41A81D98-63F2-43AD-BB3C-44CBF8E7BE3C@php.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] proc_open() resource to opaque object migration From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 9/28/23 23:21, Derick Rethans wrote: > Yes, lacking evidence that the name is actually being used: Process > > PHP "owns" the top level namespace. This has been documented for decades, too. > I agree here. While I'm totally in favor of using namespaces in core, it should be done somewhat consistently. If the proc_* functions are in the global namespace, then so should the resource object. Choosing a less-than-great classname just because it might break non-namespaced userland code is likely going to cause sadness in the future, e.g. for folks that need to use it within a type declaration. Any decision we make now effectively needs to survive for 10+ years. 'Process' is fine. 'Proc' would be consistent with the function prefix. 'ProcessHandle' would also work, but might not be the ideal choice if / when the resource object gets methods in the future. There is some precedent with GMP which got a proper contructor, because if was forgotten to make the constructor private when initially introducing it: https://github.com/php/php-src/issues/10155 Best regards Tim Dsüterhus