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

Ensure non-negative values for bcmath #68

Merged
merged 1 commit into from
Mar 14, 2021
Merged

Conversation

glensc
Copy link
Contributor

@glensc glensc commented Mar 13, 2021

Beginning with PHP8 supplying a negative value as an argument for scale
in the bcmath functions will generate a ValueError. Negative values
supplied to the Zend math functions are ignored and 0 is used generating
the same results as before.

Extracted changes made by @Megatherium from #32

Beginning with PHP8 supplying a negative value as an argument for scale
in the bcmath functions will generate a ValueError. Negative values
supplied to the Zend math functions are ignored and 0 is used generating
the same results as before.
@glensc glensc changed the title Ensured non-negative values for bcmath Ensure non-negative values for bcmath Mar 13, 2021
@glensc glensc marked this pull request as ready for review March 13, 2021 15:08
Copy link
Member

@falkenhawk falkenhawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@falkenhawk falkenhawk merged commit 554e7fe into zf1s:master Mar 14, 2021
@glensc glensc mentioned this pull request Mar 16, 2021
32 tasks
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