Re: Possible bug in the implementation of php://input streams?

From: Date: Wed, 16 Jan 2019 20:15:58 +0000
Subject: Re: Possible bug in the implementation of php://input streams?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-103752@lists.php.net to get a copy of this message
On 2019-01-16 09:59, Rasmus Schultz wrote:
We've noticed something odd about the "php://input" stream. If you attempt to rewind() it after reading the stream, rewind() returns true, and ftell() subequently returns 0. However, attempting to read the stream again after that returns nothing.
It has so many layers of redirection that someone missed setting stream->position on one layer. Maybe someone would care to apply the attached patch to fix this. -- Lauri Kenttä

Attachment: [text/x-diff] 0001-Fix-seeking-in-php-input.txt
« previous php.internals (#103752) next »