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] Declare$active first to prevent weird issue#32989

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:4.3fromKocal:fix/curl-httpclient-destruct
Aug 7, 2019
Merged

[HttpClient] Declare$active first to prevent weird issue#32989

nicolas-grekas merged 1 commit intosymfony:4.3fromKocal:fix/curl-httpclient-destruct
Aug 7, 2019

Conversation

@Kocal
Copy link
Member

@KocalKocal commentedAug 6, 2019
edited
Loading

QA
Branch?4.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?-
Fixed tickets#32833
LicenseMIT
Doc PRno

In some undefined cases we can have the following error while using the WebTestCase/CurlHttpClient in PHPUnit:
Sélection_999(101)

This is really weird because$active is a reference and so it does not need to be declared before, but doing that fixes the issue. (#32833 (comment))

I can't add tests because we were not able to reproduce the issue...

@KocalKocal changed the titlefix(http-client:curl): declare$active first to prevent weird issue[HttpClient] Declare$active first to prevent weird issueAug 6, 2019
@nicolas-grekasnicolas-grekas added this to the4.3 milestoneAug 6, 2019
@Kocal
Copy link
MemberAuthor

Kocal commentedAug 6, 2019
edited
Loading

Hum, it seems that this PR actually brokes tests...

Sélection_999(107)

@nicolas-grekas
Copy link
Member

Would using0 break in the same way?

@Kocal
Copy link
MemberAuthor

I don't have the time for now, I will check it out this evening.

@Kocal
Copy link
MemberAuthor

Huh, so$active = null,$active = 0 and$active make tests for HttpClient timeout...

I don't understand why. It's a variable declared in a reference so it should be ok... Maybe because of a weird PHP configuration, it fails?
We really need to find a way to easily reproduce the issue and find a better fix than this... :/

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

(issue in tests was unrelated to this PR and has been fixed in#33005)

Kocal reacted with thumbs up emoji
@nicolas-grekas
Copy link
Member

Thank you@Kocal.

@nicolas-grekasnicolas-grekas merged commitba030f0 intosymfony:4.3Aug 7, 2019
nicolas-grekas added a commit that referenced this pull requestAug 7, 2019
…e (Kocal)This PR was squashed before being merged into the 4.3 branch (closes#32989).Discussion----------[HttpClient] Declare `$active` first to prevent weird issue| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | -    <!-- please add some, will be required by reviewers -->| Fixed tickets |#32833    <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | noIn some undefined cases we can have the following error while using the WebTestCase/CurlHttpClient in PHPUnit:![Sélection_999(101)](https://user-images.githubusercontent.com/2103975/62543336-0ad9e700-b85e-11e9-8b7f-d5b49e1d2d0d.png)This is really weird because `$active` is a reference and so it does not need to be declared before, but doing that fixes the issue. (#32833 (comment))I can't add tests because we were not able to reproduce the issue...Commits-------ba030f0 [HttpClient] Declare `$active` first to prevent weird issue
@KocalKocal deleted the fix/curl-httpclient-destruct branchAugust 7, 2019 08:29
@fabpotfabpot mentioned this pull requestAug 26, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

3 participants

@Kocal@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp