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

This's a bug ? #27

Open
jiangguoliang opened this issue Dec 21, 2016 · 2 comments
Open

This's a bug ? #27

jiangguoliang opened this issue Dec 21, 2016 · 2 comments

Comments

@jiangguoliang
Copy link

ErrorException in Upload.php line 131:
rand() expects parameter 2 to be integer, float given


 $randNum = rand(1, 10000000000) . rand(1, 10000000000);

changed to
`

    $randNum = rand(1, 100000000) . rand(1, 100000000);

`

@stevenyangecho
Copy link
Owner

var_dump(PHP_INT_MAX)

@jianhuawang
Copy link

jianhuawang commented Jan 24, 2017

建议改成下面样,兼容32位和64位
$randNum = rand(1, 2000000000) . rand(1, 2000000000);

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

3 participants