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

From: Date: Sat, 02 Sep 2000 08:49:43 +0000
Subject: PHP 4.0 Bug #6499: $upload_type[] has wrong size with empty multiple-file uploads
Groups: php.dev 
Request: Send a blank email to php-dev+get-31643@lists.php.net to get a copy of this message
From: daniel.burckhardt@sur-gmbh.ch Operating system: Win NT PHP version: 4.0.1pl2 PHP Bug Type: Misbehaving function Bug description: $upload_type[] has wrong size with empty multiple-file uploads 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]

« previous php.dev (#31643) next »