[GH-ISSUE #91] random_int only php7 #38

Closed
opened 2026-02-25 20:32:14 +03:00 by kerem · 2 comments
Owner

Originally created by @ghost on GitHub (Jan 6, 2018).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/91

you mention it is compatible with php 5.4 but the function random_int in base32 trait is only available in php7 and will return an error message

Originally created by @ghost on GitHub (Jan 6, 2018). Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/91 you mention it is compatible with php 5.4 but the function random_int in base32 trait is only available in php7 and will return an error message
kerem closed this issue 2026-02-25 20:32:14 +03:00
Author
Owner

@GrahamCampbell commented on GitHub (Jan 6, 2018):

https://github.com/antonioribeiro/google2fa/blob/master/composer.json#L16

<!-- gh-comment-id:355742395 --> @GrahamCampbell commented on GitHub (Jan 6, 2018): https://github.com/antonioribeiro/google2fa/blob/master/composer.json#L16
Author
Owner

@antonioribeiro commented on GitHub (Jan 6, 2018):

As @GrahamCampbell noted, it is compatible via random_compat, and tests are passing from PHP 5.4 to 7.2:

image

<!-- gh-comment-id:355746163 --> @antonioribeiro commented on GitHub (Jan 6, 2018): As @GrahamCampbell noted, it is compatible via random_compat, and [tests are passing](https://travis-ci.org/antonioribeiro/google2fa) from PHP 5.4 to 7.2: ![image](https://user-images.githubusercontent.com/3182864/34640017-516117aa-f2d2-11e7-8380-03d8bc50b682.png)
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#38
No description provided.