php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46151 file_get_contents() doesn't use mmap
Submitted: 2008-09-22 12:12 UTC Modified: 2012-05-13 07:57 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: Keisial at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2CVS-2008-09-22 (snap) OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Keisial at gmail dot com
New email:
PHP Version: OS:

 

 [2008-09-22 12:12 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-13 07:57 UTC] stas@php.net
-Status: Open +Status: Not a bug -Package: Feature/Change Request +Package: *General Issues
 [2012-05-13 07:57 UTC] stas@php.net
5.2 is not supported anymore.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 09:01:31 2025 UTC