mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
9ec61e43d4
There are two related changes here: 1. Also check for S_ISCHR/FILE_TYPE_CHAR when checking for pipes, so that we detect ttys as well, which are also not seekable. 2. Always set position=-1 (i.e. ftell will return false) when a pipe is detected. Previously position=0 was sometimes used, depending on whether we're on Windows/Linux and whether the FD or FILE codepath was used. |
||
---|---|---|
.. | ||
cast.c | ||
filter.c | ||
glob_wrapper.c | ||
memory.c | ||
mmap.c | ||
php_stream_context.h | ||
php_stream_filter_api.h | ||
php_stream_glob_wrapper.h | ||
php_stream_mmap.h | ||
php_stream_plain_wrapper.h | ||
php_stream_transport.h | ||
php_stream_userspace.h | ||
php_streams_int.h | ||
plain_wrapper.c | ||
streams.c | ||
transports.c | ||
userspace.c | ||
xp_socket.c |