fclose( $op['stream'] ); // close open handle
if ( $rcode >= 200 && $rcode <= 299
// double check that the disk is not full/broken
- && $tmpFile->getSize() == $rhdrs['content-length']
+ && $tmpFiles[$path]->getSize() == $rhdrs['content-length']
) {
// good
} elseif ( $rcode === 404 ) {
$cases[] = array(
array( "$base/unittest-cont1/e/a/x.txt", "$base/unittest-cont1/e/a/y.txt",
"$base/unittest-cont1/e/a/z.txt" ),
- array( "contents xx", "contents xy", "contents xz" )
+ array( "contents xx $", "contents xy 111", "contents xz" )
);
return $cases;
$cases[] = array(
array( "$base/unittest-cont1/e/a/x.txt", "$base/unittest-cont1/e/a/y.txt",
"$base/unittest-cont1/e/a/z.txt" ),
- array( "contents xx", "contents xy", "contents xz" )
+ array( "contents xx 1111", "contents xy %", "contents xz $" )
);
return $cases;