Bug #12426: Critical PHP bug while processing big POST data (>10K)
| From: | dk at dklab dot ru | Date: | Fri, 27 Jul 2001 14:57:49 +0000 |
| Subject: | Bug #12426: Critical PHP bug while processing big POST data (>10K) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-61227@lists.php.net to get a copy of this message | ||
From: dk@dklab.ru
Operating system: RedHat Linux 7.0 2.2.16-22smp
PHP version: 4.0.6
PHP Bug Type: Unknown/Other Function
Bug description: Critical PHP bug while processing big POST data (>10K)
I have configured PHP4 to process POST data less than 8000000 (phpinfo()
reports that, see below). When I use the following script and enter a large
block of text in the form, PHP4 cuts it off. Please test
http://www.dklab.ru/test.php (with phpinfo() call, form
at the bottom of
the file)
http://dklab.ru/content.txt (the file I am inserting -
please test it)
Here is the script:
<?
show_source("test.php");
echo @$text;
?>
<form action=test.php method=post>
<textarea cols=60 rows=10 name=text wrap=virtual>
<?$f=fopen("content.txt","r"); echo fread($f,100000)?>
</textarea><br>
<input type=submit name=go value="Go!">
</form>
I have encountered that use of multipart/form-data forms solves this
problem, but usual POST forms does not work correctly. PHP3 also work
correct with such forms.
--
Edit bug report at: http://bugs.php.net/?id=12426&edit=1