#19749 [Opn]: shouldn't mmap() files larger than memory_limit in _php_stream_passthru

From: Date: Sat, 05 Oct 2002 11:34:33 +0000
Subject: #19749 [Opn]: shouldn't mmap() files larger than memory_limit in _php_stream_passthru
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21555@lists.php.net to get a copy of this message
ID: 19749 Updated by: wez@php.net Reported By: rasmus@php.net Status: Open Bug Type: Performance problem Operating System: All PHP Version: 4CVS-2002-10-04 -Assigned To: +Assigned To: wez New Comment: How do we tell when a file is too big? We can check if the file size exceeds the memory limit, but surely we should be checking for some size smaller than that so that we don't exceed the limit (by too much). Previous Comments: ------------------------------------------------------------------------ [2002-10-04 03:21:22] rasmus@php.net We should check the memory limit before mmap()'ing a huge file in _php_stream_passthru() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19749&edit=1

« previous php.bugs (#21555) next »