Closed bullmike closed 5 years ago
Looks like something we could easily add a unit test for
perhaps this should use the is_numeric() function ?
well no not completely. Not sure how it would behave if we then try to parse some numbers formatted in a specific locale.
Can you specify exactly where this function is not working? Was just trying it with PHP7 and it seems to behave as expected.
Seems that the behavior of the intl formatter has changed then. Previously it would return FALSE
if you would pass it a string that it can't parse. Now it seems to return 0
.
@odiea, have you ever experienced this with the latest version?
If it's not an issue with 3.3.0 I would close.
All appears to be working correctly for me. If there is a certain test that would be needed I would like to know what it is.
I close.
Check_Numeric function called from Item and Tax config doesn't function correctly in php7.
check_numeric("test") returns 'true'
Not sure why this function is doing a bitwise AND assignment.. '&=' .
Background information
IMPORTANT: If you choose to ignore this issue report template, your issue will be closed as we cannot help without the requested information.
Please make sure you tick (add an x between the square brackets with no spaces) the following check boxes:
Installation information
Issue / Bug / Question / New Feature
Please write your issue here. If a bug, please make sure to provide as much information as possible including configuration settings (e.g. Decimals set, Tax mode), language and steps to reproduce the bug.