[php-src] Issue #8239: For php://input fread() writes temp files

From: Date: Wed, 23 Mar 2022 10:52:26 +0000
Subject: [php-src] Issue #8239: For php://input fread() writes temp files
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240462@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8239 Comment Author: raubv0gel @cmb69, thank you! The point is: There exists cases for which there is no need to back the entire stream data (in memory, in temp files, …) One of the advantages to uses streams is that you do not need to know all data at a certain point of time. In my case a hash function that supports streaming only needs to know some part (e. g. 1024 bytes) of the data at a certain point of time (the “incremented” final hash value is calculated at end of stream). Therefore there should at least be an setting to disable backing the php://input stream. Or am I missing something here?

« previous php.bugs (#240462) next »