Bug #77884 [NEW]: BC Break. locale_parse('root') return empty result after patch update
| From: | tsykun314 at gmail dot com | Date: | Fri, 12 Apr 2019 18:10:44 +0000 |
| Subject: | Bug #77884 [NEW]: BC Break. locale_parse('root') return empty result after patch update | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-220419@lists.php.net to get a copy of this message | ||
From: tsykun314 at gmail dot com
Operating system:
PHP version: 7.1.28
Package: *Languages/Translation
Bug Type: Bug
Bug description:BC Break. locale_parse('root') return empty result after patch update
Description:
------------
After update php version 7.1.26 => 7.1.28 the function locale_parse can
return empty result. This BC affects on symfony/intl
https://github.com/symfony/symfony/blob/v3.4.24/src/Symfony/Component/Intl/Locale.php#L71
and leads to errors in the application.
PHP 7.1.28-1+ubuntu18.04.1+deb.sury.org+3 (cli) (built: Apr 10 2019
10:50:29) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.28-1+ubuntu18.04.1+deb.sury.org+3, Copyright
(c) 1999-2018, by Zend Technologies
----
Internationalization support => enabled
version => 1.1.0
ICU version => 64.1
ICU Data version => 64.1
Expected result:
----------------
php -r "print_r(locale_parse('root'));"
Array
(
[language] => root
)
php -version
PHP 7.1.26-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jan 11 2019
14:13:49) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.26-1+ubuntu18.04.1+deb.sury.org+1, Copyright
(c) 1999-2018, by Zend Technologies
Actual result:
--------------
php -r "print_r(locale_parse('root'));"
Array
(
)
php -version
PHP 7.1.28-1+ubuntu18.04.1+deb.sury.org+3 (cli) (built: Apr 10 2019
10:50:29) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.28-1+ubuntu18.04.1+deb.sury.org+3, Copyright
(c) 1999-2018, by Zend Technologies
--
Edit bug report at https://bugs.php.net/bug.php?id=77884&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77884&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77884&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77884&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77884&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77884&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77884&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77884&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77884&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77884&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77884&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77884&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77884&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77884&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77884&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77884&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77884&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77884&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77884&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77884&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77884&r=mysqlcfg