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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC