|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2007-05-16 12:54 UTC] tony2001@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 13:00:01 2025 UTC | 
Description: ------------ if you set locale to for example de_DE json_decode will not decode floats correctly anymore. Reproduce code: --------------- setlocale(LC_NUMERIC, 'de_DE'); var_dump(json_decode('[2.1]'); Expected result: ---------------- array(1) { [0]=> float(2.1) } Actual result: -------------- array(1) { [0]=> float(2) }