Index: main/streams/streams.c =================================================================== RCS file: /repository/php-src/main/streams/streams.c,v retrieving revision 1.82.2.6.2.18.2.5 diff -u -p -r1.82.2.6.2.18.2.5 streams.c --- main/streams/streams.c 12 Jan 2008 15:50:57 -0000 1.82.2.6.2.18.2.5 +++ main/streams/streams.c 24 Mar 2008 15:22:15 -0000 @@ -1221,26 +1226,6 @@ PHPAPI size_t _php_stream_copy_to_mem(ph maxlen = 0; } - if (php_stream_mmap_possible(src)) { - char *p; - size_t mapped; - - p = php_stream_mmap_range(src, php_stream_tell(src), maxlen, PHP_STREAM_MAP_MODE_SHARED_READONLY, &mapped); - - if (p && mapped) { - *buf = pemalloc_rel_orig(mapped + 1, persistent); - - if (*buf) { - memcpy(*buf, p, mapped); - (*buf)[mapped] = '\0'; - } - - php_stream_mmap_unmap(src); - - return mapped; - } - } - if (maxlen > 0) { ptr = *buf = pemalloc_rel_orig(maxlen + 1, persistent); while ((len < maxlen) & !php_stream_eof(src)) {