Re: [PHP_DEV] [RFC] Add file_descriptor() function

From: Date: Mon, 16 Jan 2023 16:10:05 +0000
Subject: Re: [PHP_DEV] [RFC] Add file_descriptor() function
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-119281@lists.php.net to get a copy of this message
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

« previous php.internals (#119281) next »