mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
4c7b5a89ba
There are two problems with mmap() in this case: 1) there is no performance gain since we allocate the memory anyways; 2) memcpy() may crash if somebody truncates this file at the same moment (see http://dev.daylessday.org/diff/mmap.phps for example); It seems to work fine with fpassthru(), though why it is so should be investigated. Thanks to Andrey Vasilishin for the report and Anight for pressing this through =)