Skip to content
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

IPBlock not working correctly with prefix larger than 23 #74

Open
jeroenborst opened this issue Oct 3, 2022 · 0 comments
Open

IPBlock not working correctly with prefix larger than 23 #74

jeroenborst opened this issue Oct 3, 2022 · 0 comments

Comments

@jeroenborst
Copy link

Unexpected behaviour while using IPBlock with prefixes larger than 23

$block = IPBlock::create('35.35.32.0/22');
foreach ($block as $ip) {
    echo $ip,"\n";
}
35.35.32.0
35.35.32.1
35.35.32.2
...
35.35.35.230
35.35.35.231
84.83.80.48
84.83.80.49
85.83.84.54
85.83.84.55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant