#19263 [NEW]: huge POST data corrupt
| From: | erwin at isiz dot com | Date: | Fri, 06 Sep 2002 13:03:33 +0000 |
| Subject: | #19263 [NEW]: huge POST data corrupt | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-18572@lists.php.net to get a copy of this message | ||
From: erwin@isiz.com
Operating system: Solaris 8
PHP version: 4CVS-2002-09-06
PHP Bug Type: Apache2 related
Bug description: huge POST data corrupt
Hi,
I've gave this the summary "huge POST data", because I've found two bugs,
which are, in my opinion, related.
The first one:
If I upload a file using the file upload example from the php website, all
I get are corrupted files. The resulting files are about two times bigger
then the input files. The amount of bytes on the output varies a little
bit. This does not happens with files of 10 Kb, but different files which
vary from 60-120 Kb got corrupted.
The second one:
If I post text in a textarea, nothing goes wrong. But if I post a lot of
text in a textarea, parts of the text is copied into the text itself. For
instance, I copied the source of http://www.php.net (normal HTML
source)
in a textarea. Posted the data to info.php (this script only has the
phpinfo() function, so I can see all data). The sourcecode of the php
website is 376 lines long. The result is about 734 lines. This is around
twice as big (The site looks really weird ;-))
Again, I think these two are related. They only occured in conjunction
with Apache 2.0.40 (didn't test other Apache 2 releases). I'm sure that
the bug is a PHP bug, because Perl code doesn't have this problem (but I
rather use PHP)
I did test it with php-4.2.2, which gave me the same results.
PHP Configure line:
'./configure' '--with-mysql=/usr/local/mysql' '--enable-track-vars'
'--with-openssl=/usr/local/ssl/' '--with-zlib' '--enable-ftp'
'--with-gd'
'--enable-gd-native-ttf' '--with-pdflib' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-freetype-dir=/usr/local'
'--prefix=/usr/local/httpd/php' '--with-zlib-dir=/usr'
'--with-apxs2=/usr/local/httpd/bin/apxs'
Greets,
Erwin
--
Edit bug report at http://bugs.php.net/?id=19263&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19263&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19263&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19263&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19263&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19263&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19263&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19263&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19263&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19263&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19263&r=globals