Bug #32371 php://input sometimes returns dupl data
http://thepathetic.com/jozef/php_input_stream_patch.html
http://thepathetic.com/jozef/php-5.0.3-input_stream.patch
http://thepathetic.com/jozef/php-4.3.10-input_stream.patch
can still be reproduced on php-5.0.4rc2. Is there any
particular reason
I did not find a matching bug entry. Created #32371 for it.
The exacly same code is also in php-4.3.10, I made a diff
against that version (streams.c is in a different dir), too.
Description and patches :
http://thepathetic.com/jozef/php_input_stream_patch.html
http://thepathetic.com/jozef/php-5
In some cases, the php://input stream returns incorrect data.
This was discovered as a data corruption when directly parsing
a POSTed XML with a long text-node.
The problem is between main/streams/streams.c and
ext/standard/php_fopen_wrapper.c.
The XML parser requests data from the stream in 4000