note 25086 added to function.fpassthru

From: Date: Tue, 10 Sep 2002 09:57:27 +0000
Subject: note 25086 added to function.fpassthru
Groups: php.notes 
Request: Send a blank email to php-notes+get-36435@lists.php.net to get a copy of this message
The memory limit error caused by large files is probably a bug in the implementation of this function. May be it has been corrected, so that the function will no more try to allocate a large buffer to read the whole file in one call, and then write the content to standard output in a single call. This function should simply, by default, use an 8KB buffer to read the file using its default buffer size, or a larger buffer as set by the set_file_buffer($fp, $size) function, and perform a read/write loop... Can the PHP developer team check this ? -- http://www.php.net/manual/en/function.fpassthru.php http://master.php.net/manage/user-notes.php?action=edit+25086 http://master.php.net/manage/user-notes.php?action=delete+25086 http://master.php.net/manage/user-notes.php?action=reject+25086

« previous php.notes (#36435) next »