Bug #79363 [Csd]: \p{L} doesn't work alongside \p{Arabic} in a character class
| From: | cmb@php.net | Date: | Sat, 30 Jan 2021 13:52:58 +0000 |
| Subject: | Bug #79363 [Csd]: \p{L} doesn't work alongside \p{Arabic} in a character class | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231840@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79363&edit=1
ID: 79363
Updated by: cmb@php.net
Reported by: halaeiv at gmail dot com
Summary: \p{L} doesn't work alongside \p{Arabic} in a
character class
Status: Closed
Type: Bug
Package: PCRE related
Operating System: Ubuntu 18.04
PHP Version: 7.4.14
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thanks for the swift reply! It seems that Ubuntu didn't backport
the fix for bug #79846[1].
[1] <https://bugs.exim.org/show_bug.cgi?id=2621>
Previous Comments:
------------------------------------------------------------------------
[2021-01-30 13:24:56] halaeiv at gmail dot com
PCRE_VERSION in both is the same:
10.35 2020-05-09
------------------------------------------------------------------------
[2021-01-30 12:58:11] cmb@php.net
What's the value of PCRE_VERSION in both environments?
------------------------------------------------------------------------
[2021-01-30 12:45:24] halaeiv at gmail dot com
Hello again.
I have tested the following in 2 builds of PHP-7.4.14, one from Ubuntu 18.04 repository and another
one build with phpbrew. Unfortunately the results are different. I think phpbrew is correct.
Test script:
------------
echo(preg_replace('/[^\p{L}\p{Arabic}]/', '0', '<->'));
Expected result (phpbrew):
------------
000
Actual result (ubuntu):
-----------------------
<->
Should this be opened again or it needs to be reported elsewhere?
------------------------------------------------------------------------
[2020-09-17 22:11:08] cmb@php.net
Related To: Bug #80118
------------------------------------------------------------------------
[2020-09-17 18:42:52] requinix@php.net
Related To: Bug #80118
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79363
--
Edit this bug report at https://bugs.php.net/bug.php?id=79363&edit=1