Bug #79363 [Csd]: \p{L} doesn't work alongside \p{Arabic} in a character class
| From: | cmb@php.net | Date: | Sat, 30 Jan 2021 12:58:11 +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-231838@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:
What's the value of PCRE_VERSION in both environments?
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2020-09-17 12:10:44] cmb@php.net
Fixed as <http://git.php.net/?p=php-src.git;a=commit;h=9f2d03952daf5348d7f18c18e82607979e28df12>.
------------------------------------------------------------------------
[2020-06-30 14:22:30] cmb@php.net
The master branch has just been updated to PCRE2 10.35, so that
will be available as of PHP 8.0.0alpha2.
Updating for PHP 7.4 will be considered at the earliest in several
weeks; for the time being I'm suspending this ticket.
------------------------------------------------------------------------
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