Bug #81185 [Fbk->NoF]: preg_match fails to match while it seemingly should

From: Date: Sun, 04 Jul 2021 04:22:13 +0000
Subject: Bug #81185 [Fbk->NoF]: preg_match fails to match while it seemingly should
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234793@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81185&edit=1

 ID:               81185
 Updated by:       php-bugs@lists.php.net
 Reported by:      hans at reachdigital dot nl
 Summary:          preg_match fails to match while it seemingly should
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          PCRE related
 Operating System: macOS Big Sur
 PHP Version:      7.4.20
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2021-06-21 13:06:50] hans at reachdigital dot nl

Might be a dupe of https://bugs.php.net/bug.php?id=81101 - my affected
colleagues are running the same PCRE lib version that this bug is related to (10.37)

------------------------------------------------------------------------
[2021-06-21 12:01:03] hans at reachdigital dot nl

In case this is relevant, PRCRE library versions and default for my colleague running 7.4.20:

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 10.37 2021-05-26
PCRE Unicode Version => 13.0.0
PCRE JIT Support => enabled
PCRE JIT Target => x86 64bit (little endian + unaligned)
pcre.backtrack_limit => 1000000 => 1000000
pcre.jit => 1 => 1
pcre.recursion_limit => 100000 => 100000

And for me, running PHP 7.4.16:

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 10.36 2020-12-04
PCRE Unicode Version => 13.0.0
PCRE JIT Support => enabled
PCRE JIT Target => x86 64bit (little endian + unaligned)
pcre.backtrack_limit => 1000000 => 1000000
pcre.jit => 1 => 1
pcre.recursion_limit => 100000 => 100000

------------------------------------------------------------------------
[2021-06-21 11:55:03] hans at reachdigital dot nl

Small correction to my previous comment: I am running the older not-affected  7.4.16 PHP version, my
colleagues who are affected are running 7.4.20 and 8.0.6

------------------------------------------------------------------------
[2021-06-21 11:52:57] hans at nieser dot nl

Hey there, a few colleagues of mine who are both running into this issue (I am running 7.4.20 myself
so am not affected) report that adding ini_set("pcre.jit", "0") to
the test script does indeed make it give the expected result

------------------------------------------------------------------------
[2021-06-21 11:42:38] danack@php.net

I don't get the results you seem to have: https://3v4l.org/Xl4DM

Please can you test setting ini_set("pcre.jit", "0") and see if that makes a
difference?

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


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=81185


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


Thread (7 messages)

« previous php.bugs (#234793) next »