# _php_stream_passthru and large file

- Thread: https://externals.io/message/16916
- Original archive: https://news-web.php.net/php.internals/16916
- Started by Yasuo Ohgaki on 2005-06-27T06:37:20+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #16916 — Yasuo Ohgaki — 2005-06-27T06:37:20+00:00

URL: https://externals.io/message/16916#16916

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
