Bug #78420 [Opn->Nab]: preg_match failed with Unicode character scripts

From: Date: Sat, 24 Aug 2019 09:28:17 +0000
Subject: Bug #78420 [Opn->Nab]: preg_match failed with Unicode character scripts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222388@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78420&edit=1 ID: 78420 Updated by: cmb@php.net Reported by: noskov dot vlad at gmail dot com Summary: preg_match failed with Unicode character scripts -Status: Open +Status: Not a bug Type: Bug Package: PCRE related PHP Version: 7.4.0beta2 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This has been confirmed to be an upstream issue (which has been already resolved), so I'm closing this ticket. Previous Comments: ------------------------------------------------------------------------ [2019-08-20 14:25:36] noskov dot vlad at gmail dot com PCRE2 bug report: https://bugs.exim.org/show_bug.cgi?id=2432 ------------------------------------------------------------------------ [2019-08-16 11:56:06] cmb@php.net The regression has been introduced by updating to PCRE2 10.33[1], so apparently is an upstream issue, which might have been resolved already. [1] <http://git.php.net/?p=php-src.git;a=commit;h=aa9433e9286801a6af6d4cee73d9a165a61e0e3b> ------------------------------------------------------------------------ [2019-08-16 10:06:15] daverandom@php.net https://3v4l.org/4D17e ------------------------------------------------------------------------ [2019-08-16 10:04:46] daverandom@php.net The problem is more subtle than this, as the following all work: var_dump(preg_match('~[\pL\p{Cyrillic}]~u', 'testЛ')); var_dump(preg_match('~[\pL]~u', 'testЛ')); var_dump(preg_match('~[\p{Cyrillic}]~u', 'testЛ')); var_dump(preg_match('~[\pL]~u', 'test')); var_dump(preg_match('~[\p{Cyrillic}]~u', 'Л')); var_dump(preg_match('~\pL~u', 'Л')); var_dump(preg_match('~\p{Cyrillic}~u', 'testЛ')); var_dump(preg_match('~\pL\p{Cyrillic}~u', 'testЛ')); ------------------------------------------------------------------------ [2019-08-16 10:04:29] requinix@php.net Works with JIT disabled. ------------------------------------------------------------------------ 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=78420 -- Edit this bug report at https://bugs.php.net/bug.php?id=78420&edit=1

« previous php.bugs (#222388) next »