_php_stream_passthru and large file

php.internals

Yasuo Ohgaki

21 years ago
Hi _php_stream_passthru has a problem. It tries to read whole file with systems have mmap (i.e. HAVE_MMAP 1), it may feed to much data to output buffer. (e.g. sending 700MB data to output buffer will most likely end up with memory limit error) Is anyone going/would like to fix this problem? If not, I'll.
-- Yasuo Ohgaki