Re: [PATCH] Fix for 32371 : php://input sometimes returns dupl data
| From: | D . Walsh | Date: | Sat, 19 Mar 2005 02:08:18 +0000 |
| Subject: | Re: [PATCH] Fix for 32371 : php://input sometimes returns dupl data | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-15501@lists.php.net to get a copy of this message | ||
On Mar 18, 2005, at 20:46, Jozef Hatala wrote:
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.0.3-input_stream.patch http://thepathetic.com/jozef/php-4.3.10-input_stream.patch If curious, you can reproduce it against an unpatched php-5.0.3 like this: $ wget http://thepathetic.com/jozef/data.xml $ curl -s --data-binary '@data.xml' http://thepathetic.com/jozef/lala2.php | cmp - data.xml The reply will be: - data.xml differ: byte 8193, line 1 Here is lala2.php : $ wget -O lala2.php http://thepathetic.com/jozef/lala2.php.txt jh On Sat, Mar 19, 2005 at 01:32:09AM +0200, sniper wrote:Nice simple patch that gets the job done!!!!! Hopefully it will find it's way into the release of 4.3.11. -- DaleAre there any bug reports about this at bugs.php.net ? If not, enter one and put the patch online somewhere were we can download it as text file. (and the url to that into the bug report)Does this problem exist with PHP_4_3 branch?--Jani