#39830 [Opn->Fbk]: Incorrect (float) variable output after using setlocale

From: Date: Mon, 18 Dec 2006 08:39:52 +0000
Subject: #39830 [Opn->Fbk]: Incorrect (float) variable output after using setlocale
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106460@lists.php.net to get a copy of this message
ID: 39830 Updated by: tony2001@php.net Reported By: ipa at beta dot lt -Status: Open +Status: Feedback Bug Type: Variables related Operating System: Linux 2.6.10 PHP Version: 4.4.4 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Cannot reproduce. Previous Comments: ------------------------------------------------------------------------ [2006-12-14 09:58:01] ipa at beta dot lt Description: ------------ Strange behaviour on float variable output after using setlocale() function. Reproduce code: --------------- <?php setlocale(LC_NUMERIC, 'lt_LT'); $xxx = 19.48; echo ($xxx) . "\n"; // Output float from variable echo (19.48) . "\n"; // Output float directly ?> Expected result: ---------------- 19,48 19,48 Actual result: -------------- 19,48 19.48 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39830&edit=1

« previous php.bugs (#106460) next »