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:11
Avg. Score:3.9 ± 1.0
Reproduced:9 of 9 (100.0%)
Same Version:4 (44.4%)
Same OS:3 (33.3%)
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-2015 The PHP Group
All rights reserved.
Last updated: Wed May 27 05:03:35 2015 UTC