Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PHP-DEV] PHP 4.0 Bug #6499 Updated: $upload_type[] has wrong size with empty multiple-file uploads

0 views
Skip to first unread message

jmo...@php.net

unread,
Nov 20, 2000, 9:13:09 AM11/20/00
to
ID: 6499
Updated by: jmoore
Reported By: daniel.b...@sur-gmbh.ch
Status: Analyzed
Bug Type: *General Issues
Assigned To:
Comments:

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

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

[2000-09-02 04:49:43] daniel.b...@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]


---------------------------------------------------------------------------


Full Bug description available at: http://bugs.php.net/?id=6499


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-u...@lists.php.net
For additional commands, e-mail: php-de...@lists.php.net
To contact the list administrators, e-mail: php-lis...@lists.php.net

0 new messages