mirror of
https://github.com/php/php-src.git
synced 2026-04-17 13:01:02 +02:00
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.