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

From: Date: Sat, 30 Jan 2021 13:24:56 +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-231839@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: PCRE_VERSION in both is the same: 10.35 2020-05-09 Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2020-09-17 12:10:44] cmb@php.net Fixed as <http://git.php.net/?p=php-src.git;a=commit;h=9f2d03952daf5348d7f18c18e82607979e28df12>. ------------------------------------------------------------------------ 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 (#231839) next »