Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125586 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 E1DEB1A0103 for ; Tue, 17 Sep 2024 16:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726589014; bh=q1VZQUstTkIvgu2h0gS5e7/fRwn+456h+EJVLmIGaFg=; h=Date:To:From:Cc:Subject:In-Reply-To:References:From; b=EcIKtWUdRzOs1kCEKJbV2Nxo0H1LOWvefRCZOO0OGgKFbioAraLOZLoPn3wh5xfq2 4UG44TYUZMCr92+heuhEwYl6wW1h1k7uFimtQ1fEySZmEYTblObCsZhdzHQosqW+nZ ttTHW5ub8VRByXS3Yfmbrkze+wlC1V4yRaZVkGMqzY00n50hp3pt7nR5EV1C8LZdkR nzqzLLxsxoX9uFsUVelO+h8+NZaFbm7jVa88CGR1Di+V3U6dsIIdI1iAwcLbOLB/ow STiBi0WjdUh7iwK4dQ10FXblTLW+Atl0ktSdS4y0pRQuD0hKzSLCPkCUKgclvAenpn aBrjJ5Miy+KEA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4DDD718007F for ; Tue, 17 Sep 2024 16:03:32 +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)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 17 Sep 2024 16:03:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail2; t=1726588883; x=1726848083; bh=q1VZQUstTkIvgu2h0gS5e7/fRwn+456h+EJVLmIGaFg=; 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=KiL5Jq22rbMJ9sdpafzfi1tuSdQV1MFgdaN1F9KTSBLLAhGp7MR93CE7GgYBNR80Q lxsVAPh/HBFuv8dpFnyKc/SBuKtFdfRjsCXwGAtjXC4+mQG2mWaAAk/+ZjpxcK+Vy1 TNHYDkuawzY5i4gAm+HwN4rq7MG6sB1yCAg1AWK3ciV0p23/lVH3a3vlmXISKZZLYH du6B7749b82ZOpMJaPur9rFjX1i/L8rJURj9Z5f+UihPmiYH7W6/RQUb9d4rRlL6gg DddPjtv3zfJll5S0CySEeduec71aKghGNN8l6WZX/Tx3bCweWAqFztNWAanB2qTbcP 8roMYpTPVHEkA== Date: Tue, 17 Sep 2024 16:01:19 +0000 To: Derick Rethans Cc: PHP internals Subject: Re: [PHP-DEV] [RFC] Change Directory class to behave like an opaque object Message-ID: In-Reply-To: <426821d9-990c-fbc7-5a52-6e0e952a6a55@php.net> References: <2VnM6xycBpzqzDnAZKWS4zxCSUjvoKywJRiBzTcGhS8axaFS7QwbGNQtjkovo1jQi1XLiEGGTi3KfQfWoxUT527U_-6IGO3092BZdW436q0=@gpb.moe> <426821d9-990c-fbc7-5a52-6e0e952a6a55@php.net> Feedback-ID: 96993444:user:proton X-Pm-Message-ID: c0f0943d21206177dc5e5675ac8e93171573aad0 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 Monday, 16 September 2024 at 18:31, Derick Rethans wrot= e: > On Sat, 14 Sep 2024, Gina P. Banyard wrote: >=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, 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 >=20 >=20 > I see you want to make "new Directory" not work - but wouldn't it make > more sense if that was the prefered way instead of using dir() ? I don't have any strong preferences, but this could always be amended as a = follow-up. I don't expect anyone to instantiate Directory with new anyway as it result= s in a broken object. Best regards, Gina P. Banyard