Req #46151 [Opn->Nab]: file_get_contents() doesn't use mmap

From: Date: Sun, 13 May 2012 07:57:07 +0000
Subject: Req #46151 [Opn->Nab]: file_get_contents() doesn't use mmap
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-170408@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=46151&edit=1 ID: 46151 Updated by: stas@php.net Reported by: Keisial at gmail dot com Summary: file_get_contents() doesn't use mmap -Status: Open +Status: Not a bug Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: * PHP Version: 5.2CVS-2008-09-22 (snap) Block user comment: N Private report: N New Comment: 5.2 is not supported anymore. Previous Comments: ------------------------------------------------------------------------ [2008-09-22 12:12:08] Keisial at gmail dot com Description: ------------ As opposed to 5.3 on 5.2 php_stream_copy_to_mem doesn't use php_stream_mmap_range, even though there is a comment on the call to php_stream_copy_to_mem saying 'uses mmap if possible' (on file_get_contents, at file.c:562) 5.2 is using read() calls instead. Still, 5.2 is faster both in loading and treating the file. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=46151&edit=1

« previous php.bugs (#170408) next »