Bug #79363 [Csd]: \p{L} doesn't work alongside \p{Arabic} in a character class

From: Date: Sat, 30 Jan 2021 12:45:24 +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-231837@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 +Operating System: Ubuntu 18.04 -PHP Version: 7.4.3 +PHP Version: 7.4.14 Assigned To: cmb Block user comment: N Private report: N New Comment: 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? Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2020-06-30 12:49:42] cmb@php.net The following pull request has been associated: Patch Name: Update to PCRE2 10.35 On GitHub: https://github.com/php/php-src/pull/5783 Patch: https://github.com/php/php-src/pull/5783.patch ------------------------------------------------------------------------ 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

« previous php.bugs (#231837) next »