dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove unused variable in MultiHttpClient CURLOPT_READFUNCTION callback
[lhc/web/wiklou.git]
/
includes
/
libs
/
http
/
MultiHttpClient.php
diff --git
a/includes/libs/http/MultiHttpClient.php
b/includes/libs/http/MultiHttpClient.php
index
6b1ef89
..
17352f0
100644
(file)
--- a/
includes/libs/http/MultiHttpClient.php
+++ b/
includes/libs/http/MultiHttpClient.php
@@
-353,9
+353,7
@@
class MultiHttpClient implements LoggerAwareInterface {
}
curl_setopt( $ch, CURLOPT_READFUNCTION,
function ( $ch, $fd, $length ) {
- $data = fread( $fd, $length );
- $len = strlen( $data );
- return $data;
+ return (string)fread( $fd, $length );
}
);
} elseif ( $req['method'] === 'POST' ) {