Bug #14201 Updated: Crash when uploading multiple files

From: Date: Fri, 23 Nov 2001 21:45:55 +0000
Subject: Bug #14201 Updated: Crash when uploading multiple files
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-71500@lists.php.net to get a copy of this message
ID: 14201 Updated by: mfischer Reported By: djonexx@alpinet.org 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] 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

« previous php.dev (#71500) next »