On 16.01.2023 at 16:01, G. P. B. wrote:

> I would like to start the discussion about the "Add file_descriptor()
> function" RFC:
> https://wiki.php.net/rfc/file-descriptor-function
>
> This RFC proposes the addition of the file_descriptor() function to
> retrieve the underlying file descriptor of stream if it exists. This is
> useful when interacting with a USB device.

Thanks for the RFC!

I wonder, though, what happens if the file descriptor is then
manipulated directly, but the stream is accessed later.  Probably,
there's no way to keep the stream resource properly working in all cases.

Isn't the DIO extension[1] already sufficient for such kind of low-level
stuff?

[1] <https://pecl.php.net/package/dio>

--
Christoph M. Becker

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to