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

[HttpClient] pass CURLOPT_INFILESIZE_LARGE only when supported#59695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:6.4fromxabbuh:pr-59654
Feb 4, 2025

Conversation

xabbuh
Copy link
Member

QA
Branch?6.4
Bug fix?no
New feature?no
Deprecations?no
Issues
LicenseMIT

following#59654

@xabbuhxabbuhforce-pushed thepr-59654 branch 2 times, most recently from92df1e0 toda6c052CompareFebruary 4, 2025 16:55
@xabbuhxabbuh changed the title[HttpClient] limit using CURLOPT_INFILESIZE_LARGE to 64bit PHP versions[HttpClient] pass CURLOPT_INFILESIZE_LARGE only when supportedFeb 4, 2025
@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commitc33333b intosymfony:6.4Feb 4, 2025
10 of 11 checks passed
@xabbuhxabbuh deleted the pr-59654 branchFebruary 4, 2025 17:28
@@ -316,8 +316,8 @@ public function request(string $method, string $url, array $options = []): Respo
}

foreach ($curlopts as $opt => $value) {
if (\CURLOPT_INFILESIZE === $opt && $value >= 1 << 31) {
$opt = 115; // 115 === CURLOPT_INFILESIZE_LARGE, but it's not defined in PHP
if (\PHP_INT_SIZE === 8 && \defined('CURLOPT_INFILESIZE_LARGE') && \CURLOPT_INFILESIZE === $opt && $value >= 1 << 31) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

But before the assignment also happened when the constant is not defined, right? Now it need to be defined 🤔

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

OskarStark reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@stofstofstof left review comments

@OskarStarkOskarStarkOskarStark left review comments

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

5 participants
@xabbuh@nicolas-grekas@stof@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp