|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2019-11-14 17:40 UTC] requinix@php.net
 
-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
-Package: *Regular Expressions
+Package: PCRE related
  [2019-11-14 17:40 UTC] requinix@php.net
  [2019-11-16 18:01 UTC] requinix@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 12:00:01 2025 UTC | 
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) { }