1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00
Files
archived-php-src/main/streams
Antony Dovgal 4c7b5a89ba Change streams to not use mmap() when reading files (aka copying to memory).
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 =)
2008-03-24 16:28:08 +00:00
..
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00
2008-01-30 23:43:05 +00:00
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00