PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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");
}
}