Bug #79709 [Opn->Sus]: Regex does not match space with JIT enabled
| From: | requinix@php.net | Date: | Thu, 18 Jun 2020 06:05:04 +0000 |
| Subject: | Bug #79709 [Opn->Sus]: Regex does not match space with JIT enabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227532@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79709&edit=1
ID: 79709
Updated by: requinix@php.net
Reported by: majed at dee dot codes
-Summary: Space regex
+Summary: Regex does not match space with JIT enabled
-Status: Open
+Status: Suspended
Type: Bug
-Package: *Regular Expressions
+Package: PCRE related
Operating System: Linux
PHP Version: 7.4.7
Block user comment: N
Private report: N
New Comment:
Only happens in JIT mode. Disable that with the pcre.jit setting.
That makes this a bug in the upstream PCRE library. I'm suspending this until that is fixed.
Previous Comments:
------------------------------------------------------------------------
[2020-06-18 05:55:53] majed at dee dot codes
Description:
------------
Hi,
This
print_r(preg_match('/[\s\p{Arabic}]/u',' '));
Prints 1 in PHP7.3.11 but prints 0 in 7.4.7 . If that's is expected, it's not documented
in the migration manual.
https://www.php.net/manual/en/migration74.other-changes.php#migration74.other-changes.pkg-config
Test script:
---------------
print_r(preg_match('/[\s\p{Arabic}]/u',' '));
Expected result:
----------------
1
Actual result:
--------------
0
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79709&edit=1