Bug #77937 [Com]: preg_match failed

From: Date: Wed, 24 Apr 2019 22:24:29 +0000
Subject: Bug #77937 [Com]: preg_match failed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220599@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77937&edit=1

 ID:                 77937
 Comment by:         a at b dot c dot de
 Reported by:        v-altruo at microsoft dot com
 Summary:            preg_match failed
 Status:             Not a bug
 Type:               Bug
 Package:            PCRE related
 Operating System:   Windows 10
 PHP Version:        7.3.5RC1
 Block user comment: N
 Private report:     N

 New Comment:

Incidentally, the test cited in the original report uses the string
"aàáçéè", not Hebrew characters.


Previous Comments:
------------------------------------------------------------------------
[2019-04-24 22:20:37] a at b dot c dot de

Adding the /u modifier to the pattern would help (assuming the source is encoded in UTF8 - you
can't even SAY "aאבחיט" in ISO8859-1).

------------------------------------------------------------------------
[2019-04-24 20:45:09] requinix@php.net

Last I knew Portuguese does not cover Hebrew characters.

------------------------------------------------------------------------
[2019-04-24 20:33:06] v-altruo at microsoft dot com

Description:
------------
Failed regardless of OPCache being enabled or disabled and if it was TS or NTS. 
Test file location: ext\pcre\tests\locales.phpt

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)


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=77937&edit=1


Thread (9 messages)

« previous php.bugs (#220599) next »