Bug #14201 Updated: Crash when uploading multiple files
| From: | derick@php.net | Date: | Fri, 23 Nov 2001 22:00:07 +0000 |
| Subject: | Bug #14201 Updated: Crash when uploading multiple files | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71502@lists.php.net to get a copy of this message | ||
ID: 14201
Updated by: derick
Reported By: djonexx@alpinet.org
Old Status: Feedback
Status: Closed
Bug Type: Reproducible crash
Operating System: Windows 2000, Linux
PHP Version: 4.0.6
New Comment:
These fixes will not be in the 4.1.0 release, try a snapshot (on linux) from snaps.php.net, or try a
dev package (for windows) from www.php4win.com.
Please reopen if these versions didn't fix the problem.
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-11-23 16:45:55] mfischer@php.net
file upload has been rewritten since then.
Can you try latest RC if and see if it works?
Either
http://www.php.net/~zeev/php-4.1.0RC3.tar.gz
or
http://phpuk.org/~james/php-4.1.0RC3-win32.zip
Feedback.
------------------------------------------------------------------------
[2001-11-23 16:37:38] djonexx@alpinet.org
When using a form to upload multiple files with the same name (example follows), there is a GPF in
PHP4TS.DLL at address 0x005362EB. It is trying to read from address 0x00000001.
The PHP is 4.0.6 running on an Apache 1.3.20 server on Win2k sp2. The same problem manifests also on
Linux 2.2.19.
Use a HTML page like this to upload files:
<form method="post" enctype="multipart/form-data"
action="upload-test.php">
<input type="file" name="image[]"><input type="hidden"
name="name[]">
...
<input type="file" name="image[]"><input type="hidden"
name="name[]">
<input type="submit" value="Upload!">
</form>
--------
upload-test.php:
<?php echo sizeof($image); echo "<br>"; echo sizeof($name); ?>
--------
If there are more than N file fields, it will crash. On my machine N=26, even if the form is
submitted empty.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14201&edit=1