Bug #79363 [Csd]: \p{L} doesn't work alongside \p{Arabic} in a character class
| From: | halaeiv at gmail dot com | Date: | Sat, 30 Jan 2021 14:47:29 +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-231842@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
User updated by: halaeiv at gmail dot com
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:
I sent an issue to https://github.com/oerdnj/deb.sury.org/issues/1526
Previous Comments:
------------------------------------------------------------------------
[2021-01-30 14:15:02] halaeiv at gmail dot com
So is it going to be fixed in 7.4.15? If it isn't related to php-src, do you know where should
it be reported? I have absolutely no idea about the build process or why they use a different
version of pcre or anything than the one they should use.
Thanks for your help.
------------------------------------------------------------------------
[2021-01-30 13:52:58] cmb@php.net
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>
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
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