Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15500 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6789 invoked by uid 1010); 19 Mar 2005 01:46:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6774 invoked from network); 19 Mar 2005 01:46:43 -0000 Received: from unknown (HELO skrt.org) (127.0.0.1) by localhost with SMTP; 19 Mar 2005 01:46:43 -0000 X-Host-Fingerprint: 208.25.178.70 u-tdftp.rd.francetelecom.com Received: from ([208.25.178.70:2596] helo=u-tdftp.rd.francetelecom.fr) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 8D/DD-00382-2848B324 for ; Fri, 18 Mar 2005 20:46:43 -0500 Received: from u-hatala.rd.francetelecom.com (U-HATALA.nmb [10.193.244.182]) by u-tdftp.rd.francetelecom.fr (Postfix) with ESMTP id C82C5111DC0; Fri, 18 Mar 2005 17:46:39 -0800 (PST) Received: from u-hatala.rd.francetelecom.com (localhost [127.0.0.1]) by u-hatala.rd.francetelecom.com (8.13.3/8.13.3) with ESMTP id j2J1kdPm005932; Fri, 18 Mar 2005 17:46:39 -0800 Received: (from jozef@localhost) by u-hatala.rd.francetelecom.com (8.13.3/8.13.3/Submit) id j2J1kcYV005931; Fri, 18 Mar 2005 17:46:38 -0800 X-Authentication-Warning: u-hatala.rd.francetelecom.com: jozef set sender to phpint-bkrrym@skrt.org using -f Date: Fri, 18 Mar 2005 17:46:38 -0800 To: Jani Taskinen Cc: internals@lists.php.net Message-ID: <20050319014638.GA5573@u-hatala.rd.francetelecom.fr> References: <20050316223422.GB11662@u-hatala.rd.francetelecom.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.7i Subject: [PATCH] Fix for 32371 : php://input sometimes returns dupl data From: phpint-bkrrym@skrt.org (Jozef Hatala) 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 >