Re: adding low level file handling stuff
| From: | Ferenc Kovacs | Date: | Sun, 08 May 2011 13:51:01 +0000 |
| Subject: | Re: adding low level file handling stuff | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52137@lists.php.net to get a copy of this message | ||
> I agree, I think that the best solution would be to
> - add support for replacing a stream with another (a similar function
>
> for http://php.net/manual/en/function.stream-copy-to-stream.php or
> maybe
> extending that), which would be available on all platforms, this would cover
> my initial use-case.
> - I think we should also provide the fileno functionality, because without
> that, the php://fd is pretty useless.
> - anything else, like dup2, fcntl should go to the dio or posix extension,
> that would be useful for some people.
> what do you think?
> Tyrael
the fileno could be added to the
http://php.net/manual/en/function.stream-get-meta-data.php
this way we
still kept it in the stream functions without introducing a new
function for it.
Tyrael