|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2010-04-27 09:45 UTC] mike@php.net
  [2010-04-27 09:47 UTC] mike@php.net
  [2010-04-28 02:39 UTC] mike@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
Description: ------------ HttpMessage::getHttpVersion() returns a string instead a float. This would be fine, if the string was actually a string representation of the version float. But the string is locale dependent. The method should either return a float, or cast to string locale-independently. Reproduce code: --------------- setlocale(LC_ALL, "de_DE"); $h = new HttpRequest("http://www.example.com"); $h->send(); echo $h->getResponseMessage()->getHttpVersion(); Expected result: ---------------- 1.1 Actual result: -------------- 1,1