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

Not working on php 32 bit #6

Closed
marliotto opened this issue Feb 7, 2018 · 0 comments
Closed

Not working on php 32 bit #6

marliotto opened this issue Feb 7, 2018 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@marliotto
Copy link

Because "1 << 32" returns 0 on 32 bit

$netSize = 1 << (32 - $prefix);
$lastIp = $firstIp + $netSize - 1;
if ($lastIp >= (1 << 32)) {
    return $result;
}

https://github.com/ipstack/wizard/blob/master/src/Sheet/Network.php#L157

Q A
Wizard version 2.0.0
PHP version 7.1.12 32 bit
Operating system Windows 7
@ddrv ddrv self-assigned this Feb 16, 2018
@ddrv ddrv added this to the 1.0.1 milestone Feb 16, 2018
@ddrv ddrv added the bug Something isn't working label Feb 16, 2018
@ddrv ddrv closed this as completed in b2e3344 Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants