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

Different values in two servers with same php #54

Closed
rastydnb opened this issue Feb 24, 2016 · 2 comments
Closed

Different values in two servers with same php #54

rastydnb opened this issue Feb 24, 2016 · 2 comments

Comments

@rastydnb
Copy link

Hi

we have two server,the two servers have php 5.6.17 , one of server is mi local with nginx ,the other server is production with apache .

When use "add()" function over some moneys, get different result in two servers.

In local we get positive values and no get erros but,
in the producction server get negative values and get this error:

The first parameter of Money must be an integer. It's the amount, expressed in the smallest units of currency (eg cents)

We work with 6 decimals configured in config.yml
We need special php module, or any idea

Thanks

@geekdevs
Copy link
Collaborator

@rastydnb Sounds like this is not directly related to this bundle as it's not making any calculations. You need to check dependency it's using (https://github.com/moneyphp/money). In particular looks like this is relevant moneyphp/money#40

@frederikbosch
Copy link

This issue can be closed, was solved here already.

@geekdevs geekdevs closed this as completed Oct 5, 2016
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

No branches or pull requests

3 participants