Skip to content

Commit 533265c

Browse files
committed
more fixes to bring php 5.3 support
1 parent 71ae61e commit 533265c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Embed/RequestResolvers/Curl.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,14 @@ protected function resolve()
178178
return strlen($string);
179179
});
180180

181-
curl_setopt($connection, CURLOPT_WRITEFUNCTION, function ($connection, $string) use (&$isBinary) {
181+
$content &= $this->content;
182+
183+
curl_setopt($connection, CURLOPT_WRITEFUNCTION, function ($connection, $string) use (&$isBinary, &$content) {
182184
if ($isBinary) {
183185
return 0;
184186
}
185187

186-
$this->content .= $string;
188+
$content .= $string;
187189

188190
return strlen($string);
189191
});

0 commit comments

Comments
 (0)