ID: 14201
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows 2000, Linux
PHP Version: 4.0.6
New Comment:

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.

Previous Comments:
------------------------------------------------------------------------

[2001-11-23 16:37:38] [EMAIL PROTECTED]

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


-- 
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