php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70585 getRegion should return null instead of defaulting to 'US'
Submitted: 2015-09-25 16:33 UTC Modified: -
From: b8kich+php at gmail dot com Assigned:
Status: Open Package: *Languages/Translation
PHP Version: 5.5.29 OS: GNU/Linux 2.6.32-358.18.1.el6.x8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: b8kich+php at gmail dot com
New email:
PHP Version: OS:

 

 [2015-09-25 16:33 UTC] b8kich+php at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/locale.getregion
---

Return Values
The region subtag for the locale or NULL if not present

Test script:
---------------
$ php -r "echo Locale::getRegion(null);"
US

$ php -v
PHP 5.5.29 (cli) (built: Sep  9 2015 01:34:19


Expected result:
----------------
'' (null)

Actual result:
--------------
US

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 03:01:28 2019 UTC