Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125670 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 2CDCC1A00BD for ; Tue, 24 Sep 2024 17:25:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1727198881; bh=g2vCIE3SE3UTb0AkWlddsH2VUl4JEnULknEKbNdAmd0=; h=Date:To:From:Cc:Subject:In-Reply-To:References:From; b=k3IB45URu9SbY4tY8xwK+6V3FPrPuwZPwWiO+IUIsXfFK4dndwfF+4XrPP+u3mQvo dOE3SwWU+YbnIfdVXWwaDWA90hQFNtE52Uf0gwU90NW19oTxRWLzT5ncV+jKL1t+Pv LStyZFdg22woIzPueX2a3hsTAnTOUEX3q+MsWX41X7X1zJQuqOoHfX+ZnATjbXb+Cq rWlQcTASx5eLyhi1XYDhN6js4meIlp4rxd/Ed8f+7ZXNPKessyMiqQvZtSy4F3b3r2 z7611IQDnw8/jHVHtnmn2PWgc3k6OAQvIodbP8U6jBIEjpRHy71NU0mKcPcsWiIxI0 fE/2xTxqqPV6A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4F9E51801C7 for ; Tue, 24 Sep 2024 17:28:01 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) (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 ; Tue, 24 Sep 2024 17:28:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail2; t=1727198750; x=1727457950; bh=g2vCIE3SE3UTb0AkWlddsH2VUl4JEnULknEKbNdAmd0=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=pKmMx62HFmuqz1VXEQWFHUPt4e9RZoIOOXpUwAD5FbzUSRa+KCPHN7YdiKrOapZmE m+GoCbgrp0ppaAUdl7Lon6J9lErAZmeD0bN7Sg4MUj+oWr//CuXRNn8Z3gAvv8A9fI H4Y0B6IIj/bBk729C4NaOLHtatLZsRj+3thlU5xIhFUO9GytTvWnRYV6n5kKkRjZoC erPpy6LkUgIYtfXyF5imE8pqlC3PYR+bscig3WSE++f2TM++voD8Y4yjVPVbrEmUI2 J4Ii3rsj4NV2fVm4Ff5fa4ZpyoC7T931M5gYdojk5GwVUTMAzPcUCx9YOnlNm63YtE QImmAeAb1upWQ== Date: Tue, 24 Sep 2024 17:25:44 +0000 To: Christian Schneider Cc: PHP internals Subject: Re: [PHP-DEV] [RFC] Change Directory class to behave like an opaque object Message-ID: In-Reply-To: <2FB7E806-05B9-4493-AFF3-42A494F0D9CC@cschneid.com> References: <2VnM6xycBpzqzDnAZKWS4zxCSUjvoKywJRiBzTcGhS8axaFS7QwbGNQtjkovo1jQi1XLiEGGTi3KfQfWoxUT527U_-6IGO3092BZdW436q0=@gpb.moe> <2FB7E806-05B9-4493-AFF3-42A494F0D9CC@cschneid.com> Feedback-ID: 96993444:user:proton X-Pm-Message-ID: 88f66ab005ad0fee7a8e6c2affad93e99de9ebee Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: internals@gpb.moe ("Gina P. Banyard") On Tuesday, 24 September 2024 at 14:34, Christian Schneider wrote: > Am 14.09.2024 um 17:33 schrieb Gina P. Banyard internals@gpb.moe: >=20 > > I came across the Directory class while doing some code exploration of = ext/standard. > > This class is effectively an opaque object for Directory resources, how= ever it doesn't behave like one, as it has existed since PHP 4. > >=20 > > As such, I am proposing an RFC to turn this class into an opaque object= . > >=20 > > RFC: https://wiki.php.net/rfc/directory-opaque-object >=20 >=20 > While I understand the other proposed changes (although I'm always a bit = wary about the wish to make more and more things final) I was wondering why= you would prevent cloning? > What are the possible downsides in allowing people to get a clone of a Di= rectory object? Mainly because the current behaviour doesn't do a proper clone. It still shares a common directory resource with the original object meanin= g that there is spooky action at a distance even thought cloning is meant t= o prevent this. Best regards, Gina P. Banyard