Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15501 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32710 invoked by uid 1010); 19 Mar 2005 02:08:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32695 invoked from network); 19 Mar 2005 02:08:27 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 19 Mar 2005 02:08:27 -0000 X-Host-Fingerprint: 67.78.11.230 relay.daleenterprise.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (1) Received: from ([67.78.11.230:55316] helo=daleenterprise.com) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 5C/BE-00382-A998B324 for ; Fri, 18 Mar 2005 21:08:26 -0500 Received: from mail.daleenterprise.com (localhost [127.0.0.1]) by daleenterprise.com (Postfix) with ESMTP id 6F770641E51 for ; Fri, 18 Mar 2005 21:08:23 -0500 (EST) Received: from daleenterprise.com ([127.0.0.1]) by mail.daleenterprise.com (daleenterprise.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27835-08 for ; Fri, 18 Mar 2005 21:08:22 -0500 (EST) Received: from [10.1.100.21] (relay.mustangrestomods.com [67.78.11.226]) by daleenterprise.com (Postfix) with ESMTP id B1EEF641E45 for ; Fri, 18 Mar 2005 21:08:22 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <20050319014638.GA5573@u-hatala.rd.francetelecom.fr> References: <20050316223422.GB11662@u-hatala.rd.francetelecom.fr> <20050319014638.GA5573@u-hatala.rd.francetelecom.fr> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <19225459d5510d88ba70d435c97514ac@daleenterprise.com> Content-Transfer-Encoding: 7bit Date: Fri, 18 Mar 2005 21:08:18 -0500 To: PHPdev List X-Mailer: Apple Mail (2.619.2) MTA-Interface: amavisd-new-2.2.1 (2004-12-22) at daleenterprise.com X-Spam-Scanned: using SpamAssassin at daleenterprise.com X-Virus-Scanned: using ClamAV at daleenterprise.com Subject: Re: [PHP-DEV] [PATCH] Fix for 32371 : php://input sometimes returns dupl data From: info@daleenterprise.com (D . Walsh) 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: >> >> 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 Nice simple patch that gets the job done!!!!! Hopefully it will find it's way into the release of 4.3.11. -- Dale