8000 [HttpFoundation] Support 0 bit netmask in IPv6 (`::/0`) by stephank · Pull Request #25330 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpFoundation] Support 0 bit netmask in IPv6 (::/0) #25330

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

stephank
Copy link
@stephank stephank commented Dec 5, 2017
Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Proxy settings allow 0.0.0.0/0 but not ::/0. This PR adds IpUtils support for 0 masked bits in IPv6.

Tests pass in the sense that results before and after are unchanged on my local PHP 7.2 / macOS setup. The IpUtils test cases were extended for the changes in this PR.

I've rebased on 2.7, but the issue is present up to 4.0 and master.

@nicolas-grekas nicolas-grekas added this to the 2.7 milestone Dec 6, 2017
@stephank stephank changed the title Feat/ipv6 any Support 0 bit netmask in IPv6 (::/0) Dec 8, 2017
@stephank stephank changed the title Support 0 bit netmask in IPv6 (::/0) [HttpFoundation] Support 0 bit netmask in IPv6 (::/0) Dec 8, 2017
@fabpot
Copy link
Member
fabpot commented Dec 11, 2017

Thank you @stephank.

fabpot added a commit that referenced this pull request Dec 11, 2017
…tephank)

This PR was squashed before being merged into the 2.7 branch (closes #25330).

Discussion
----------

[HttpFoundation] Support 0 bit netmask in IPv6 (`::/0`)

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | —
| License       | MIT
| Doc PR        | —

Proxy settings allow `0.0.0.0/0` but not `::/0`. This PR adds IpUtils support for 0 masked bits in IPv6.

Tests pass in the sense that results before and after are unchanged on my local PHP 7.2 / macOS setup. The IpUtils test cases were extended for the changes in this PR.

I've rebased on 2.7, but the issue is present up to 4.0 and master.

Commits
-------

9f1c9bd [HttpFoundation] Support 0 bit netmask in IPv6 ()
@fabpot fabpot closed this Dec 11, 2017
This was referenced Dec 15, 2017
This was referenced Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0