php-src/main/streams
Nikita Popov b95b553489 Remove zero size special case for copy_to_stream
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.
2021-03-29 15:21:59 +02:00
..
cast.c Use standard types in fopencookie test 2020-08-05 10:39:37 +02:00
filter.c Make error messages more consistent by fixing capitalization 2020-01-17 14:52:46 +01:00
glob_wrapper.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
memory.c Constify char * arguments of APIs 2020-06-08 10:38:45 +02:00
mmap.c Merge branch 'PHP-7.4' 2019-10-31 09:37:27 +01:00
php_stream_context.h Fix expression warnings and break warnings 2020-06-07 10:41:11 +02:00
php_stream_filter_api.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_stream_glob_wrapper.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_stream_mmap.h Merge branch 'PHP-7.4' into master 2020-09-21 16:09:17 +02:00
php_stream_plain_wrapper.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_stream_transport.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_stream_userspace.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_streams_int.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
plain_wrapper.c Suppress stream errors in mysqlnd 2020-11-30 15:06:28 +01:00
streams.c Remove zero size special case for copy_to_stream 2021-03-29 15:21:59 +02:00
transports.c Make error messages more consistent by fixing capitalization 2020-01-17 14:52:46 +01:00
userspace.c Merge branch 'PHP-7.4' into master 2020-09-22 16:14:03 +02:00
xp_socket.c Suppress stream errors in mysqlnd 2020-11-30 15:06:28 +01:00