Bug #78812 [Nab]: Error in case recognition of cyrillic ya

From: Date: Sat, 16 Nov 2019 18:01:47 +0000
Subject: Bug #78812 [Nab]: Error in case recognition of cyrillic ya
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223745@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78812&edit=1 ID: 78812 Updated by: requinix@php.net Reported by: vklimin at 510710 dot com Summary: Error in case recognition of cyrillic ya Status: Not a bug Type: Bug Package: PCRE related Operating System: Debian 9 PHP Version: 7.3.11 Block user comment: N Private report: N New Comment: Will be fixed with PCRE2 10.34, which looks like it will correspond to PHP 8.0. Previous Comments: ------------------------------------------------------------------------ [2019-11-14 17:40:05] requinix@php.net Confirmed https://3v4l.org/Op0GK ...but this is an upstream bug. https://bugs.exim.org/show_bug.cgi?id=2466 ------------------------------------------------------------------------ [2019-11-14 11:12:30] vklimin at 510710 dot com Description: ------------ Regular expression does not detect a case of first letters in cyrillic strings. Test script: --------------- TEST 1: preg_match( '/(?=ял)/ui', 'яЛ', $matches); var_dump($matches); RESULT 1 IS CORRECT: array(1) { [0]=> string(0) "" } TEST 2: preg_match( '/(?=ял)/ui', 'Ял', $matches); var_dump($matches); RESULT 2 IS INCORRECT: array(0) { } RESULT 2 MUST BE: array(1) { [0]=> string(0) "" } Expected result: ---------------- RESULT 2 MUST BE: array(1) { [0]=> string(0) "" } Actual result: -------------- RESULT 2 IS INCORRECT: array(0) { } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78812&edit=1

« previous php.bugs (#223745) next »