|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #56939 Filter Float don't check locales.
Submitted: 2006-04-06 12:27 UTC Modified: 2006-05-13 21:56 UTC
From: reiv4x at free dot fr Assigned: pajoye (profile)
Status: Closed Package: filter (PECL)
PHP Version: 5.1.1 OS: Gentoo Linux
Private report: No CVE-ID: None
 [2006-04-06 12:27 UTC] reiv4x at free dot fr
I try code below with my langage (French) and i didn't 
find a good result.
I use "," in french for float separator.
For english it's not "," for thousand number ?

Reproduce code:
//$_GET['myfloat'] == '10,42';
$source = INPUT_GET;
$name = 'myfloat';
$ret = input_get($source, $name, FILTER_VALIDATE_FLOAT);

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-08 12:28 UTC] pierre dot php at gmail dot com
I have a patch to support custom decimal.

It requires some small modifications to be applied to the current pecl code. I'll commit it as soon as we agreed on this feature.

Assigned to me.
 [2006-05-13 21:56 UTC] pierre dot php at gmail dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 04:01:31 2024 UTC