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

[HttpFoundation] Fix getClientIp @return docblock#22418

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
fabpot merged 1 commit intosymfony:2.7frome-moe:ticket_22415
Apr 13, 2017

Conversation

@e-moe
Copy link
Contributor

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#22415
LicenseMIT
Doc PRnone

Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

👍

@e-moee-moeforce-pushed theticket_22415 branch 2 times, most recently from27556c9 to1fb44d3CompareApril 13, 2017 11:18
@nicolas-grekasnicolas-grekas added this to the2.7 milestoneApr 13, 2017
@fabpot
Copy link
Member

Thank you@e-moe.

@fabpotfabpot merged commitaf3424f intosymfony:2.7Apr 13, 2017
fabpot added a commit that referenced this pull requestApr 13, 2017
This PR was merged into the 2.7 branch.Discussion----------[HttpFoundation] Fix getClientIp@return docblock| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#22415| License       | MIT| Doc PR        | noneCommits-------af3424f [HttpFoundation] Fix getClientIp@return docblock
@ossinkine
Copy link
Contributor

IMO the client IP can not be null in HTTP request. If you mock a request to use it in tests (as@miklcct described in#22415), you should make it correctly.
I suggest to revert this PR.

sstok reacted with thumbs up emoji

@ossinkine
Copy link
Contributor

ossinkine commentedJul 19, 2019
edited
Loading

Moreover, it is impossible even runtime: you'll get a noticeUndefined offset: 0 if$ipAddresses[0] is undefined.

fabpot added a commit that referenced this pull requestAug 4, 2019
…nkine)This PR was merged into the 3.4 branch.Discussion----------[HttpFoundation] Revert getClientIp@return docblock| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MIT<!--Replace this notice by a short README for your feature/bugfix. This will help peopleunderstand your PR and can be used as a start for the documentation.Additionally (seehttps://symfony.com/roadmap): - Bug fixes must be submitted against the lowest maintained branch where they apply   (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against branch 4.4. - Legacy code removals go to the master branch.-->This PR reverts#22418, see the comment#22418 (comment)Commits-------7568d34 [HttpFoundation] Revert getClientIp@return docblock
symfony-splitter pushed a commit to symfony/http-foundation that referenced this pull requestAug 4, 2019
…nkine)This PR was merged into the 3.4 branch.Discussion----------[HttpFoundation] Revert getClientIp@return docblock| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MIT<!--Replace this notice by a short README for your feature/bugfix. This will help peopleunderstand your PR and can be used as a start for the documentation.Additionally (seehttps://symfony.com/roadmap): - Bug fixes must be submitted against the lowest maintained branch where they apply   (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against branch 4.4. - Legacy code removals go to the master branch.-->This PR revertssymfony/symfony#22418, see the commentsymfony/symfony#22418 (comment)Commits-------7568d3452d [HttpFoundation] Revert getClientIp@return docblock
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

@xabbuhxabbuhxabbuh approved these changes

+1 more reviewer

@sstoksstoksstok approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

8 participants

@e-moe@fabpot@ossinkine@javiereguiluz@sstok@xabbuh@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp