PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTTP » HTTP_Request » Bug #1433

Posting multible files

Details

Submitted2004-05-18 16:30 UTC
Frombh dot box at mnet-online dot de
Assignedavb
StatusClosed
PackageHTTP_Request
PHP Version4.3.4
OSW2K
Roadmaps(Not assigned)

Comments

[2004-05-18 16:30 UTC] bh dot box at mnet-online dot de

Description:
------------
the var $name is used twice in the function addFile (Line 474..) for different purposes.
When posting files (assigned in an array) the variable $name is overwritten, so that the name oft the post-var is no longer assigned to the call-parameter $name.

Actual result:
--------------
foreach ($filename as $fname) {
if (!is_readable($fname)) {
return PEAR::raiseError("File '{$fname}' is not readable");
}
}