Bug #70110 [Ver->Sus]: preg_match problem

From: Date: Wed, 22 Jul 2015 14:03:30 +0000
Subject: Bug #70110 [Ver->Sus]: preg_match problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194631@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70110&edit=1

 ID:                 70110
 Updated by:         cmb@php.net
 Reported by:        bugzilla77 at gmail dot com
 Summary:            preg_match problem
-Status:             Verified
+Status:             Suspended
 Type:               Bug
 Package:            PCRE related
 Operating System:   *
 PHP Version:        7.0.0beta1
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Well, that appears to be a bug in libpcre. I've filed a respective
report[1], and suspend this ticket for now.

[1] <https://bugs.exim.org/show_bug.cgi?id=1663>


Previous Comments:
------------------------------------------------------------------------
[2015-07-22 12:05:15] cmb@php.net

That's related to the PCRE-JIT compilation which is available as
of PHP 7. When pcre.jit=0 it works as expected.

------------------------------------------------------------------------
[2015-07-22 09:04:53] bugzilla77 at gmail dot com

Description:
------------
Regresion (PHP 5.6.11 no bugy)

Test script:
---------------
<?php
 var_dump(preg_match('/^(A{1,2}B)+$/',str_repeat('AB',8192)));
?>

Expected result:
----------------
int(1)

Actual result:
--------------
bool(false)


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



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


Thread (13 messages)

« previous php.bugs (#194631) next »