Bug #14056 Updated: Large amounts of fileuploads in a page cause segmentation fault
| From: | bate@php.net | Date: | Thu, 15 Nov 2001 10:55:52 +0000 |
| Subject: | Bug #14056 Updated: Large amounts of fileuploads in a page cause segmentation fault | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70545@lists.php.net to get a copy of this message | ||
ID: 14056
Updated by: bate
Reported By: michiel@tincan.co.uk
Old Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating System: Redhat 7.0
PHP Version: 4.0.6
New Comment:
Its now Fixed.
Previous Comments:
------------------------------------------------------------------------
[2001-11-15 05:53:12] michiel@tincan.co.uk
Yes, it is fixed in the current CVS, I used, php4-200111150000
I could even increase max to 300 and it worked. However, when submitting my test script with no
files inserted for upload, the values of the file uploads were not "none", but a temporary
file. Unexpected behaviour which may lead to problems. The size of the (temp)files is 0, but the
value of the variable should be "none" or "".
------------------------------------------------------------------------
[2001-11-14 13:13:00] mfischer@php.net
Cannot reproduce with current CVS.
------------------------------------------------------------------------
[2001-11-14 12:30:14] derick@php.net
Can you try a snapshot from snaps.php.net and report back if that fixes the problem?
Derick
------------------------------------------------------------------------
[2001-11-14 12:08:47] michiel@tincan.co.uk
<!-- 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 this bug report at http://bugs.php.net/?id=14056&edit=1