Hi Martijn 2017-07-06 11:12 GMT+02:00 Martijn van Duren <p...@list.imperialat.at>: > Hello internals@, > > I have an (exotic) case where I need to be able to get the > filedescriptor from a previously opened stream (via stream_socket_pair) > to hand over to the child process, which needs to reexecute. > > I saw that the php:// wrapper supports php://fd/X syntax, so I reckon > there should be a way to extract the information as well from a stream > as well. Unfortunately I don't seem to be able to find it. > > Can someone point me in the right direction?
It seems like this is not exposed at all by PHP. I have CC'ed Sara as one of the old school streams persons, maybe she has some insights why it is not exposed or if it is worth exposing fileno() in 7.2+ -- regards, Kalle Sommer Nielsen ka...@php.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php