Bug #78812 [NEW]: Error in case recognition of the first letter in cyrillic strings
| From: | vklimin at 510710 dot com | Date: | Thu, 14 Nov 2019 11:12:31 +0000 |
| Subject: | Bug #78812 [NEW]: Error in case recognition of the first letter in cyrillic strings | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-223710@lists.php.net to get a copy of this message | ||
From: vklimin at 510710 dot com
Operating system: Debian 9
PHP version: 7.3.11
Package: *Regular Expressions
Bug Type: Bug
Bug description:Error in case recognition of the first letter in cyrillic strings
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 bug report at https://bugs.php.net/bug.php?id=78812&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78812&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78812&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78812&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78812&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78812&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78812&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78812&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78812&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78812&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78812&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78812&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78812&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78812&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78812&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78812&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78812&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78812&r=mysqlcfg