From:             [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to