[GH-ISSUE #44] Wrong php version requirement #485

Closed
opened 2026-03-14 11:55:38 +03:00 by kerem · 2 comments
Owner

Originally created by @magroski on GitHub (Aug 4, 2016).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/44

Google2FA.php, line 276 calls the function random_int(), a PHP 7 function...

http://php.net/manual/en/function.random-int.php

But the project is flagged as PHP 5.4+ compliant

Originally created by @magroski on GitHub (Aug 4, 2016). Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/44 Google2FA.php, line 276 calls the function random_int(), a PHP 7 function... http://php.net/manual/en/function.random-int.php But the project is flagged as PHP 5.4+ compliant
kerem closed this issue 2026-03-14 11:55:43 +03:00
Author
Owner

@aik099 commented on GitHub (Aug 4, 2016):

This is not a problem, because function is created by a https://github.com/paragonie/random_compat polyfill package.

<!-- gh-comment-id:237671533 --> @aik099 commented on GitHub (Aug 4, 2016): This is not a problem, because function is created by a https://github.com/paragonie/random_compat polyfill package.
Author
Owner

@magroski commented on GitHub (Aug 4, 2016):

Yup, it was my mistake. My autoloader silently failed to load random_compat.

<!-- gh-comment-id:237673919 --> @magroski commented on GitHub (Aug 4, 2016): Yup, it was my mistake. My autoloader silently failed to load random_compat.
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/google2fa#485
No description provided.