Bug #76909 [ReO]: preg_match difference between 7.3 and < 7.3
| From: | requinix@php.net | Date: | Fri, 21 Sep 2018 11:12:55 +0000 |
| Subject: | Bug #76909 [ReO]: preg_match difference between 7.3 and < 7.3 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217177@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76909&edit=1
ID: 76909
Updated by: requinix@php.net
Reported by: jay at diablomedia dot com
Summary: preg_match difference between 7.3 and < 7.3
Status: Re-Opened
Type: Bug
Package: PCRE related
Operating System: Linux
PHP Version: 7.3.0RC1
Block user comment: N
Private report: N
New Comment:
Fixed upstream.
https://vcs.pcre.org/pcre2?view=revision&revision=1016
Previous Comments:
------------------------------------------------------------------------
[2018-09-21 07:57:42] requinix@php.net
For the record, I can reproduce with pcre2test. (The backslash is required to escape the leading
space.)
re> /^[\x{0100}-\x{017f}]{1,63}$/i,utf,jit=0
data> \ domain.com
No match
data>
re> /^[\x{0100}-\x{017f}]{1,63}$/i,utf,jit=1
data> \ domain.com
0: domain.com
------------------------------------------------------------------------
[2018-09-21 06:21:21] nikic@php.net
Reopening to track the update of the bundled libpcre2.
------------------------------------------------------------------------
[2018-09-20 23:29:06] requinix@php.net
Marking NAB and I'll watch what happens with that report.
------------------------------------------------------------------------
[2018-09-20 21:53:29] jay at diablomedia dot com
I filed a bug with PCRE: https://bugs.exim.org/show_bug.cgi?id=2321
I was able to confirm that disabling PCRE JIT does fix the issue.
------------------------------------------------------------------------
[2018-09-20 21:24:21] nikic@php.net
This bug still reproduces on master, which uses PCRE 10.32, so it was not fixed as part of that
release.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=76909
--
Edit this bug report at https://bugs.php.net/bug.php?id=76909&edit=1