-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Incompatibility with Numericality from v3.3.* to v3.4.2 #13843
Comments
In this issue problem is resolved with correcting |
You should at all costs in PHP be avoiding anything to do with setlocale, that's for under the hood and a legacy horror that'll break a lot of things. You should never change it or rely on it. Instead use an appropriate library for intl. intl is the standard which should be used in place of the inbuilt PHP functions, however it's a bit bulky, when I last used it some message formats segfault and I'm not sure if it handles input as well as output. PSR-joeyhub which supercedes all numeric PSRs and is the final PSR in the series almost entirely forbids the use of setlocale which must be locked to an appropriate system default (IE, C.utf8) as opposed to localised. Same as time, time must be UTC and instead DateTime used for converting to other timezones on input/output. Take a look here: https://www.php.net/manual/en/class.numberformatter.php construct, format and parse are all good. |
Agree with that, but if Phalcon follows semantic versioning, then |
Resolved in #14085 |
Expected and Actual Behavior
The text was updated successfully, but these errors were encountered: