php-src/main/streams
Christoph M. Becker 19c844594e Fix mmap copying
Instead of attempting to map large files into memory at once, we map
chunks of at most `PHP_STREAM_MMAP_MAX` bytes, and repeat that until we
hit the point where `php_stream_seek()` fails (see bug 54902), and copy
the rest of the file by reading and writing small chunks.

We also fix the mapping behavior for zero bytes on Windows, which did
not error (as with `mmap()`), but would have mapped the remaining file.
2020-09-21 16:07:57 +02:00
..
cast.c Use standard types in fopencookie test 2020-08-05 10:39:37 +02:00
filter.c Merge branch 'PHP-7.3' into PHP-7.4 2019-10-03 06:51:56 +02:00
glob_wrapper.c Report errors from stream read and write operations 2019-07-22 17:17:28 +02:00
memory.c Report errors from stream read and write operations 2019-07-22 17:17:28 +02:00
mmap.c Fix bug #77930: Remove mmap limit 2019-10-31 09:37:05 +01:00
php_stream_context.h Remove local variables 2019-02-03 21:03:00 +01:00
php_stream_filter_api.h Remove local variables 2019-02-03 21:03:00 +01:00
php_stream_glob_wrapper.h Remove copy argument from php_glob_stream_get_path/pattern 2019-06-19 17:27:09 +02:00
php_stream_mmap.h Fix mmap copying 2020-09-21 16:07:57 +02:00
php_stream_plain_wrapper.h Remove local variables 2019-02-03 21:03:00 +01:00
php_stream_transport.h Enable TLS 1.3 by default 2019-04-28 17:37:43 +01:00
php_stream_userspace.h Remove local variables 2019-02-03 21:03:00 +01:00
php_streams_int.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
plain_wrapper.c Fix mmap copying 2020-09-21 16:07:57 +02:00
streams.c Fix mmap copying 2020-09-21 16:07:57 +02:00
transports.c Remove local variables 2019-02-03 21:03:00 +01:00
userspace.c Fix #78662: stream_write bad error detection 2019-10-11 13:36:58 +02:00
xp_socket.c Merge branch 'PHP-7.3' into PHP-7.4 2020-09-11 14:46:51 +02:00