Bug #14056: Large amounts of fileuploads in a page cause segmentation fault
| From: | michiel at tincan dot co dot uk | Date: | Wed, 14 Nov 2001 17:08:48 +0000 |
| Subject: | Bug #14056: Large amounts of fileuploads in a page cause segmentation fault | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-70465@lists.php.net to get a copy of this message | ||
From: michiel@tincan.co.uk
Operating system: Redhat 7.0
PHP version: 4.0.6
PHP Bug Type: Reproducible crash
Bug description: Large amounts of fileuploads in a page cause segmentation fault
<!-- example that causes the error -->
<!-- you don't need to upload any files, just clicking Submit will cause
the crash -->
<form method=post enctype="multipart/form-data">
<?
if (is_array($file))
while (list($key,$val) = each($file))
print "$key => $val<br>\n";
# changing max to 33 will not cause the segfault, 34 will.
$msx = 34;
for ($i=0;$i<$msx;$i++) {
print $i.'Upload file: <input type=file
name="file['.$i.']"><br>';
}
?>
<input type=submit>
</form>
<--end of example -->
--with-mysql=/usr --enable-sysvshm=yes --enable-sysvsem=yes
--enable-versioning --with-gd=/usr --enable-track-vars=yes
--enable-force-cgi-redirect=yes --enable-memory-limit=yes
--with-apache=../apache_1.3.19 --enable-debug=no --with-mcrypt
Page works if I switch back to php 4.0.4-pl1
--
Edit bug report at: http://bugs.php.net/?id=14056&edit=1