mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
b95b553489
This doesn't seem to serve a purpose anymore. Stats are expensive, so doing an unnecessary stat just to short-circuit the zero size case is rather dubious. It can also break with stream wrappers that return inaccurate sizes (symfony/symfony#40574) and probably can also break with stream filters. Drop the special case and adjust code to make it more obvious that it will still be handled correctly. Closes GH-6807. |
||
---|---|---|
.. | ||
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 |