php-developer-list | 2000101
Date: 10/14/00
- Next message: Mike Erickson: "Re: [PHP-DEV] PHP 3.0 Bug Summary Report"
- Previous message: Chuck Hagenbuch: "Re: [PHP-DEV] IMAP patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 3728
User Update by: wies <email protected>
Old-Status: Open
Status: Closed
Bug Type: *General Issues
Description: Multiple uploading array doesn't initialize $userfile_type[]
rasmus was quite correct. After upgrading to 4.0.2, it does work. Good work!
Previous Comments:
---------------------------------------------------------------------------
[2000-10-13 23:23:47] rasmus <email protected>
You mention PHP 3.0.x in your report but listed it as a PHP 4 bug. Are you seeing this in the latest PHP 4? I'm pretty sure I fixed this a while ago in PHP 4.
---------------------------------------------------------------------------
[2000-10-13 23:18:05] wies <email protected>
Just resubmitting this with a newer version of PHP listed, since it has not been fixed yet.
---------------------------------------------------------------------------
[2000-03-07 21:01:54] wies <email protected>
I guess this bug has been around since at least 3.0.12, and the PHP dev team
was sent this patch before, but the bug still exists.
chris was kind enough to send me a patch to fix this problem:
You can find the patch at
http://www.ldsys.net/~cgs/php/
Thanks chris!
---------------------------------------------------------------------------
[2000-03-04 22:13:01] wies <email protected>
The HTML part:
<form ENCTYPE="multipart/form-data" action="script.php" method="post">
<input type="file" name="file[]">
<br><input type="file" name="file[]">
<p><input type="submit" value="Upload files">
</form>
The PHP part:
<? echo "$file_type[0]"; ?>
The script should produce something like "image/gif", but instead produces nothing.
My configure line: ./configure '--with-mysql' '--with-apache=../apache_1.3.11' '--enable-track-vars' '--with-imap' '--with-pcre-regex'
$file[0], $file_name[0], $file_size[0] all work, as well as $file_type on a single-upload form.
The problem exists in 3.0.14 as well. I noticed that someone else mentioned this on the Documentation page for multipe uploads, but there doesn't seem to be a previous bug report on the problem.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=3728
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mike Erickson: "Re: [PHP-DEV] PHP 3.0 Bug Summary Report"
- Previous message: Chuck Hagenbuch: "Re: [PHP-DEV] IMAP patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

