1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 12:31:06 +02:00
Files
archived-php-src/main
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
..
2019-02-03 21:03:00 +01:00
2020-06-08 10:38:45 +02:00
2020-01-27 13:32:51 +01:00
2020-09-11 14:49:07 +02:00
2020-01-27 13:32:51 +01:00
2020-10-21 10:07:07 +02:00
2020-06-08 10:38:45 +02:00
2020-03-26 11:49:27 +01:00
2020-09-28 22:55:37 -07:00
2021-03-17 12:14:26 +01:00
2020-06-29 17:47:21 +02:00
2021-01-19 11:44:22 +01:00
2020-06-08 10:38:45 +02:00