Add support of php://temp
Issue #2
wontfix
Add support of the php://temp stream
. See https://bugs.php.net/bug.php?id=64652
Comments (2)
-
reporter -
reporter - changed status to wontfix
I may be wrong, but I still think this feature redundant. AFAIK, we've no enough control over the memory. We can listen to events on the "swap" file, but obviously it's not reasonable as we could use a regular file for that.
- Log in to comment
I doubt if this can be done easily / efficiently, because
php://temp
(which is a particular case ofphp://memory
) has no particular file descriptor we can watch for. At least until the memory limit specified for the stream is not exceeded:Well, we can make use of
php_stream_temp_cast
, which just makes a temporary file from the memory:But is it sane? I'd rather make a regular file on
tmpfs
.