Re: [RFC] Change Directory class to behave like an opaque object
| From: | Christoph M. Becker | Date: | Sat, 14 Sep 2024 16:48:09 +0000 |
| Subject: | Re: [RFC] Change Directory class to behave like an opaque object | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-125547@lists.php.net to get a copy of this message | ||
On 14.09.2024 at 17:33, Gina P. Banyard wrote:
> 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.
>
> As such, I am proposing an RFC to turn this class into an opaque object.
>
> RFC: https://wiki.php.net/rfc/directory-opaque-object
As I see it, an opaque object is an object which doesn't have any public
members. Since Directory has five public members, I wouldn't call it
opaque.
Other than that wording issue, I welcome this RFC. Thank you!
Christoph