Bug #6499 Updated: $upload_type[] has wrong size with empty multiple-file uploads
| From: | daniel dot burckhardt at sur-gmbh dot ch | Date: | Tue, 18 Dec 2001 14:36:40 +0000 |
| Subject: | Bug #6499 Updated: $upload_type[] has wrong size with empty multiple-file uploads | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74252@lists.php.net to get a copy of this message | ||
ID: 6499
User updated by: daniel.burckhardt@sur-gmbh.ch
Reported By: daniel.burckhardt@sur-gmbh.ch
Status: Closed
Bug Type: HTTP related
Operating System: Win NT
PHP Version: 4.0.1pl2
New Comment:
doesn't occur anymore in php 4.1.0 on Win NT
Previous Comments:
------------------------------------------------------------------------
[2001-12-18 07:14:19] sander@php.net
No feedback. Closing.
------------------------------------------------------------------------
[2001-11-27 05:37:21] sander@php.net
Does this problem stil occur with the latest CVS (which has IIRC a new upload-system)??? (You also
might try 4.0.6 or the latest RC (http://download.php.net/~zeev/php-4.1.0RC3.tar.gz))
------------------------------------------------------------------------
[2000-11-20 09:11:49] jmoore@php.net
This is what would be expected but is not good behaviour. This happens due to the first $upload_type
is set to null, when an array value is null it is removed from an array. I think in this case it
needs fixing.
James
------------------------------------------------------------------------
[2000-09-02 04:49:43] daniel.burckhardt@sur-gmbh.ch
when i'm using multiple file uploads and leave some of the fields empty,
then i get
sizeof($upload) > sizeof($upload_type);
(i assume that the problem is that $upload_type[] is not set to an empty string ""
for files with $upload_size[$i] == 0)
so if i a have an upload form with 2 upload entries, and i leave the first one blank,
then sizeof($upload) == 2 and sizeof($upload_type) == 1 which means that
the type for $upload[1] is in the variable $upload_type[0]
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=6499&edit=1