Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bffd80d

Browse filesBrowse files
committed
Merge branch '6.4' into 7.2
* 6.4: pass CURLOPT_INFILESIZE_LARGE only when supported
2 parents d281c96 + d5736d1 commit bffd80d
Copy full SHA for bffd80d

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎CurlHttpClient.php

Copy file name to clipboardExpand all lines: CurlHttpClient.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ public function request(string $method, string $url, array $options = []): Respo
320320
}
321321

322322
foreach ($curlopts as $opt => $value) {
323-
if (\CURLOPT_INFILESIZE === $opt && $value >= 1 << 31) {
324-
$opt = 115; // 115 === CURLOPT_INFILESIZE_LARGE, but it's not defined in PHP
323+
if (\PHP_INT_SIZE === 8 && \defined('CURLOPT_INFILESIZE_LARGE') && \CURLOPT_INFILESIZE === $opt && $value >= 1 << 31) {
324+
$opt = \CURLOPT_INFILESIZE_LARGE;
325325
}
326326
if (null !== $value && !curl_setopt($ch, $opt, $value) && \CURLOPT_CERTINFO !== $opt && (!\defined('CURLOPT_HEADEROPT') || \CURLOPT_HEADEROPT !== $opt)) {
327327
$constantName = $this->findConstantName($opt);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.