php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77936 preg_match failed
Submitted: 2019-04-24 20:11 UTC Modified: 2019-04-24 20:38 UTC
From: v-altruo at microsoft dot com Assigned:
Status: Duplicate Package: PCRE related
PHP Version: 7.2.18RC1 OS: Windows 10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: v-altruo at microsoft dot com
New email:
PHP Version: OS:

 

 [2019-04-24 20:11 UTC] v-altruo at microsoft dot com
Description:
------------
Failed regardless of OPCache being enabled or disabled and if it was TS or NTS. 

Test script:
---------------
setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese');
var_dump(preg_match('/^\w{6}$/', 'aאבחיט'));


Expected result:
----------------
int(1)

Actual result:
--------------
int(0)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-04-24 20:30 UTC] v-altruo at microsoft dot com
Test file location: ext\pcre\tests\locales.phpt
 [2019-04-24 20:38 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Mar 10 13:00:02 2026 UTC