|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-03-27 09:54 UTC] ab@php.net
-Status: Open
+Status: Duplicate
[2014-03-27 09:54 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 21:00:02 2025 UTC |
Description: ------------ CLI ignores number formatting when locales are set Gives in browser: German_Germany.1252 3,1412592 Gives in CLI: German_Germany.1252 3.1412592 Test script: --------------- <?php echo(setlocale(LC_ALL,array('de_DE','deu_deu'))."\n"); $p = 3.1412592; echo((string)$p); Expected result: ---------------- 3,1412592 Actual result: -------------- 3.1412592