[PATCH] Fix for 32371 : php://input sometimes returns dupl data
| From: | Jozef Hatala | Date: | Sat, 19 Mar 2005 01:46:38 +0000 |
| Subject: | [PATCH] Fix for 32371 : php://input sometimes returns dupl data | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-15500@lists.php.net to get a copy of this message | ||
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:
>
> Are 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
>