Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125664 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 8334C1A00BD for ; Tue, 24 Sep 2024 13:34:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1727185008; bh=KlGR2Y5jZlQ+csNE3eXPpFjUSJXjhnYQTKQmg0hx0Ow=; h=From:Subject:Date:References:To:In-Reply-To:From; b=Ucr9+ovNe5rWAJjKtsnVT78+FgRSRh+PPtoVi55UXqBim6ALKiV/ewxeXidoIf4AU rNY2KUioF3YcjolwMcnfyr8UHJ9L8jILx3oCropdpq/NJoACXhGii7vElfVOrl/W2d cbx1TQvLi6rrUtsi2Oa6c2VD1ysv3Ay9YTHophJwv+QE0sW0MdVQeY9nn0kinhpgKZ I3QqtmoE0erm6vjd/m/ZTtmjqGYTXx4dGsbJKJLGQgexGdzK1M9gB9cTl3hW0t5j2z i/4Z9yCnhIIJ/w4hsMv2cUCOYmCAUkenWsutpsEOBrhAXAUpakJ7tBUVKmfXxmWlhh ftuHMP/sZyTXg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6DD0C1801EB for ; Tue, 24 Sep 2024 13:36:45 +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,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail.gna.ch (mail.gna.ch [212.45.196.109]) (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 13:36:43 +0000 (UTC) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2e0f:4100:352d:c0c:fb35:3aa3]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id DCA563A0BD2 for ; Tue, 24 Sep 2024 15:34:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1727184872; bh=KlGR2Y5jZlQ+csNE3eXPpFjUSJXjhnYQTKQmg0hx0Ow=; h=From:Subject:Date:References:To:In-Reply-To; b=Ovl8en+G7IajmtoCrmOj/By9iAraEm6y2hcQind8S24AVerDvOmGdcztc2aCudVQZ dfoUDkZ2to4orMmq42R7q+1cbyYKNwSUzhr4bDoFrJv/z91xOkcWeZRa7pJNE/uW6M ujoyqzSGCqG5O7fsFO03G0l0hSJGj2H0DfkLkTcM= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3818.100.11.1.3\)) Subject: Re: [PHP-DEV] [RFC] Change Directory class to behave like an opaque object Date: Tue, 24 Sep 2024 15:34:32 +0200 References: <2VnM6xycBpzqzDnAZKWS4zxCSUjvoKywJRiBzTcGhS8axaFS7QwbGNQtjkovo1jQi1XLiEGGTi3KfQfWoxUT527U_-6IGO3092BZdW436q0=@gpb.moe> To: PHP internals In-Reply-To: <2VnM6xycBpzqzDnAZKWS4zxCSUjvoKywJRiBzTcGhS8axaFS7QwbGNQtjkovo1jQi1XLiEGGTi3KfQfWoxUT527U_-6IGO3092BZdW436q0=@gpb.moe> Message-ID: <2FB7E806-05B9-4493-AFF3-42A494F0D9CC@cschneid.com> X-Mailer: Apple Mail (2.3818.100.11.1.3) From: cschneid@cschneid.com (Christian Schneider) Am 14.09.2024 um 17:33 schrieb Gina P. Banyard : > I came across the Directory class while doing some code exploration of = ext/standard. > This class is effectively an opaque object for Directory resources, = however 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 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 = Directory object? Regards, - Chris