Bug #78812 [Opn->Nab]: Error in case recognition of cyrillic ya
| From: | requinix@php.net | Date: | Thu, 14 Nov 2019 17:40:05 +0000 |
| Subject: | Bug #78812 [Opn->Nab]: Error in case recognition of cyrillic ya | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-223719@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 the first letter in
cyrillic strings
+Summary: Error in case recognition of cyrillic ya
-Status: Open
+Status: Not a bug
Type: Bug
-Package: *Regular Expressions
+Package: PCRE related
Operating System: Debian 9
PHP Version: 7.3.11
Block user comment: N
Private report: N
New Comment:
Confirmed https://3v4l.org/Op0GK
...but this is an upstream bug. https://bugs.exim.org/show_bug.cgi?id=2466
Previous Comments:
------------------------------------------------------------------------
[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