Bug #66962 [Opn->Dup]: CLI ignores setlocale regarding number conversion
Edit report at https://bugs.php.net/bug.php?id=66962&edit=1
ID: 66962
Updated by: ab@php.net
Reported by: cpuidle at gmx dot de
Summary: CLI ignores setlocale regarding number conversion
-Status: Open
+Status: Duplicate
Type: Bug
Package: CGI/CLI related
Operating System: Win7 32bit
PHP Version: 5.5.10
Block user comment: N
Private report: N
New Comment:
see bug #65230
Previous Comments:
------------------------------------------------------------------------
[2014-03-26 19:07:41] cpuidle at gmx dot de
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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66962&edit=1
Thread (2 messages)