Skip to content

Commit 6f4f04b

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: skip transient test on GitHub Actions skip transient test on GitHub Actions pass CURLOPT_INFILESIZE_LARGE only when supported
2 parents 7e9ecaf + a963232 commit 6f4f04b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Symfony/Component/HttpClient/CurlHttpClient.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ public function request(string $method, string $url, array $options = []): Respo
322322
}
323323

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

src/Symfony/Component/Process/Tests/ProcessTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,9 @@ public function testNotIgnoringSignal()
16861686
if (!\function_exists('pcntl_signal')) {
16871687
$this->markTestSkipped('pnctl extension is required.');
16881688
}
1689+
if (\PHP_VERSION_ID < 80300 && isset($_SERVER['GITHUB_ACTIONS'])) {
1690+
$this->markTestSkipped('Transient on GHA with PHP < 8.3');
1691+
}
16891692

16901693
$process = $this->getProcess(['sleep', '10']);
16911694

0 commit comments

Comments
 (0)