[php-src] Issue #12727: NumberFormatter parsing fails

From: Date: Sun, 19 Nov 2023 19:45:34 +0000
Subject: [php-src] Issue #12727: NumberFormatter parsing fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245845@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12727 Author: alexandrunastase ### Description The following code: ```php <?php $formatter = new NumberFormatter('de_DE', NumberFormatter::DECIMAL); $result = $formatter->parse('100,01') // Expected: 100.01 // Actual: false $result = $formatter->parse('1.100,01') // Expected: 1100.01 // Actual: 1.1 ``` I created a docker-compose project that contains a phpunit test with multiple data that are working fine in PHP 8.1.3, but do not in 8.1.20 : https://github.com/alexandrunastase/reproduce-number-formatter-issue. I also tried 8.2.12 and the issue is present there as well Tried both de_DE and ro_RO locales and both are behaving the same. ### PHP Version PHP 8.1.20, PHP 8.2.12 ### Operating System _No response_

« previous php.bugs (#245845) next »