Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit6f4f04b

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 parents7e9ecaf +a963232 commit6f4f04b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎src/Symfony/Component/HttpClient/CurlHttpClient.php

Lines changed: 2 additions & 2 deletions
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 ($curloptsas$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

Lines changed: 3 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp