-
Notifications
You must be signed in to change notification settings - Fork 325
fix: prevent wrong formatting float values by locale #121
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
Conversation
Looks good and tests are passing on my machine. Any idea why they're failing on Travis: https://travis-ci.org/grimzy/laravel-mysql-spatial/builds/657630242 ? |
I've delayed merging this PR because adding I'm going to test this out real quick: https://github.com/symfony/polyfill-intl-icu. It's already loaded when you build Laravel. This package adds |
Thanks for fixing the tests. |
With Edit: easier to see the changes in a PR: #126 |
@grimzy This week I came across a MySQL error "Invalid GIS data provided" and ultimately tracked it down to my locale rendering floats with a comma when converted to strings. Then I just saw this issue, where the bug was presumably fixed. I am on version 4.0.0. Is the fix still pending merge? Or is this a new issue? |
resolves #84
that's the right-way fix. but to avoid install ext-intl, we can just replace comma by a dot.