Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121364 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72899 invoked from network); 17 Oct 2023 20:40:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Oct 2023 20:40:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BA7E8180506 for ; Tue, 17 Oct 2023 13:40:45 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, 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-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 ; Tue, 17 Oct 2023 13:40:45 -0700 (PDT) Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-51e28cac164so14969171a12.1 for ; Tue, 17 Oct 2023 13:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697575243; x=1698180043; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Wc63Ccm1XNgANah80OJEf7PsRW/iQ1GUiWfMhXkW33o=; b=G0bUrh2hrCQ+tWcFczkeI2yWt5iM57knYDY+/bGiBQeZt+yEkBejEyfZfwwhb/GGZd +Mm5p6h1wzF1bhbPH6POKQUYwn9rhQ9onuW3FT2rNnJ/AeM0XPEQOrTp5iQCW/k/a3sD QsRn/EW6rJ+c6ysBGrGlu993uoaWiRF6RxXmaY/po1+sJ6g0rYUaBmzkGUQ6cZ+uRQbX iYSp5SSLqLLohIq5/lofqa3USmX+U1VlmZPwzmQa6c3bjyprxImAn6B8HlKPj21WRSsk 1arNasapNRhuqPtLRCstYH8E4wSBiErCLtvBj26mUc1TiLRhcGDatr26vgx3zcA4jVN0 V5gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697575243; x=1698180043; 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=Wc63Ccm1XNgANah80OJEf7PsRW/iQ1GUiWfMhXkW33o=; b=cMJD8cNc7loP+dgLUs70r5HZrTEQDyqCPj2ND9N6K3X5ar3bM3eUmgTyPA6vViuLvJ 2aBsKGU2grKbfKdCB+f7tgBznxRBqQwp4a7eMXv7JGtOgmo9AEK6cVIXzDopBBz4o+0+ A/fYCAdFjRL2L5Sg3Sc31DtCC/n+9E++zl6ihoErV2LSRlwvhhrYr6QpufHPjw+Om5u/ TDBmPXp0caYo/31cWRqquwZbTRBsRhAioVVbOYfROUhEwgNLMUD5Zh55hwgBPWVkQWzk 7v6NN9puYHAMFR479ueQ9LYTcVfp6U9xmiurrTWarsW3+m0epttjvUR8BA9l822p4r/Z 4uWw== X-Gm-Message-State: AOJu0Yzm6e6WBT1AIk/OJWf77ZZcWxCH/gSnMZLrhmDatoAcgCgzFdxx ioh7RbnCuVrFLAHHNR8Zq9ViMuLWycOSR4sOAcJBqi0YBSw= X-Google-Smtp-Source: AGHT+IE7+9xqskCOURGxQajSPDh+VpvRhkaK+tOHnRHIVtfMXz00bldLIA0G7D3aCH2irKrSnszryTUduLD8dGRJDpQ= X-Received: by 2002:a50:aa9b:0:b0:53d:fd46:41ce with SMTP id q27-20020a50aa9b000000b0053dfd4641cemr2596805edc.19.1697575243360; Tue, 17 Oct 2023 13:40:43 -0700 (PDT) MIME-Version: 1.0 References: <41A81D98-63F2-43AD-BB3C-44CBF8E7BE3C@php.net> <08d4550f-50af-c8f7-222d-572825a57b98@bastelstu.be> In-Reply-To: <08d4550f-50af-c8f7-222d-572825a57b98@bastelstu.be> Date: Tue, 17 Oct 2023 22:40:31 +0200 Message-ID: To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000005c309b0607ef89b1" Subject: Re: [PHP-DEV] proc_open() resource to opaque object migration From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --0000000000005c309b0607ef89b1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Tim, > 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. > While I don't necessarily want to add a dedicated namespace for Process (or whatever name we settle on), I don't agree with the reasoning: the resource to opaque object migration project is just a first step, afterwards, a new object oriented API could be added (as you already noted), and later on, the procedural one should be deprecated. That's why I think this kind of consistency is not important in this case. Please note that many such opaque objects have been added to namespaces recently (e.g. FTP\Connection, IMAP\Connection, LDAP\Connection etc.). so we already have some precedent. I agree with the rest of your answer though. My favourite name is Process and I am fine with ProcessHandle as well. The latter name was proposed by Nicolas in a private conversation. In my opinion, a straw poll should decide the naming question. I honestly don't think that the change needs any more discussion/an RFC, as it doesn't cause any larger BC break than some of the other resource migrations we performed since PHP 8.0 -- and there were a lot of them: resources of around 20 extensions got converted to proper objects among curl, openssl, and pgsql just to mention some. I'd argue that at least ext/curl is more widespread than proc_* functions are. Regards, M=C3=A1t=C3=A9 --0000000000005c309b0607ef89b1--