php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39830 Incorrect (float) variable output after using setlocale
Submitted: 2006-12-14 09:58 UTC Modified: 2006-12-26 01:00 UTC
From: ipa at beta dot lt Assigned:
Status: No Feedback Package: Variables related
PHP Version: 4.4.4 OS: Linux 2.6.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ipa at beta dot lt
New email:
PHP Version: OS:

 

 [2006-12-14 09:58 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-18 08:39 UTC] tony2001@php.net
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.
 [2006-12-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC