On 16.09.2024 at 18:31, Derick Rethans wrote:

> On Sat, 14 Sep 2024, 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
>
> 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 also thought this at first, but if Directory will replace Dir handle
resources in PHP next, it might not make too much sense, since I presume
that dir() is rarely used compared to opendir(), and I  think we need to
keep opendir() and friends for a long time, anyway.

Christoph

Reply via email to