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

Fixed wrong return type. #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fixed wrong return type. #39

wants to merge 1 commit into from

Conversation

TonnyJe
Copy link

@TonnyJe TonnyJe commented Apr 4, 2023

Return type of bcmod function needs to be string, because it can return number greater than PHP_INT_MAX, eg for numbers: bcmod(PHP_INT_MAX . '1', PHP_INT_MAX . '2');

So it should have same return type as original PHP function: https://www.php.net/manual/en/function.bcmod.php

Return type of bcmod function needs to be string, because it can return number greater than PHP_INT_MAX, eg for numbers:
bcmod(PHP_INT_MAX . '1', PHP_INT_MAX . '2');

So it should have same return type as original PHP function: https://www.php.net/manual/en/function.bcmod.php
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

Successfully merging this pull request may close these issues.

2 participants