php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59430 Why Locale::acceptFromHttp can't Returns with an Array?
Submitted: 2010-09-20 05:17 UTC Modified: 2010-09-30 20:35 UTC
Votes:6
Avg. Score:3.8 ± 1.2
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:1 (25.0%)
From: i at walkinraven dot name Assigned: stas
Status: Assigned Package: intl (PECL)
PHP Version: 5.3.2 OS: Ubuntu 10.04 LTS
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-09-20 05:17 UTC] i at walkinraven dot name
Description:
------------
Locale::acceptFromHttp could only returns with a string. But HTTP Accept-Language could offer more than one language tag with priority. Why not to return an number-ordered-array like:

array
(
  0 => language tag 1,
  1 => language tag 2,
  ...
)

Ordered with priority offered by HTTP?


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 21:01:56 2014 UTC