Skip to content
This repository was archived by the owner on Sep 7, 2019. It is now read-only.

Conversation

taniko
Copy link
Contributor

@taniko taniko commented Sep 29, 2016

Fix for PHP Warning on 32 bit.

<?php
var_dump(pow(255, 4) - 1);
// float(4228250624)

rand(0, pow(255, 4) - 1);
// PHP Warning:  rand() expects parameter 2 to be integer, float given

@Devristo Devristo merged commit e5aafd7 into Devristo:master Oct 19, 2016
@Devristo
Copy link
Owner

Thanks a lot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants