Bug #70585 [NEW]: getRegion should return null instead of defaulting to 'US'

From: Date: Fri, 25 Sep 2015 16:33:11 +0000
Subject: Bug #70585 [NEW]: getRegion should return null instead of defaulting to 'US'
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196247@lists.php.net to get a copy of this message
From: b8kich+php at gmail dot com Operating system: GNU/Linux 2.6.32-358.18.1.el6.x8 PHP version: 5.5.29 Package: *Languages/Translation Bug Type: Bug Bug description:getRegion should return null instead of defaulting to 'US' 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 -- Edit bug report at https://bugs.php.net/bug.php?id=70585&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70585&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70585&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70585&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70585&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70585&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70585&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70585&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70585&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70585&r=support Expected behavior: https://bugs.php.net/fix.php?id=70585&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70585&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70585&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70585&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70585&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70585&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70585&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70585&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70585&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70585&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70585&r=mysqlcfg

« previous php.bugs (#196247) next »