Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Conversation

@aleitner
Copy link
Contributor

GMP is no longer a dependency. If GMP does not exist, BC Math is used instead.

@aleitner aleitner closed this Nov 14, 2014
@aleitner aleitner reopened this Nov 14, 2014
composer.json Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

I would take out ext-bcmath as well since this requires one or the other. Might also want to look into adding them to suggested. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ext-bcmath is required because rpmath has not yet been integrated

Copy link
Contributor

Choose a reason for hiding this comment

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

What if I have ext-gmp installed and don't have ext-bcmath?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both have been moved to suggested. Currently working on Rich's Math library

Copy link
Contributor

Choose a reason for hiding this comment

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

git add composer.json && git commit -m "Moved to suggested" && git push

@JoshuaEstes
Copy link
Contributor

The only major thing I see at first glance is the Math class isn't tested very well and I can see some use cases that would cause things to break.

What happens if I run

$result = \Bitpay\Math\Math::add(1, 2);

before I set an engine?

@JoshuaEstes
Copy link
Contributor

Scratch that last comment, I see where you are setting a default engine. I'd still like to see more tests, looking at the code coverage, I wouldn't mind sitting down and helping do some.

@JoshuaEstes
Copy link
Contributor

Build fail, fix the build =)

.travis.yml Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

you can probably remove these 3 arguments now.

@JoshuaEstes
Copy link
Contributor

Posted a few comments on the code, the more important thing is to make sure the build is passing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants