Bug #77923 [Opn]: preg_* function cannot get correct result
| From: | 2317216477 at qq dot com | Date: | Fri, 19 Apr 2019 11:33:48 +0000 |
| Subject: | Bug #77923 [Opn]: preg_* function cannot get correct result | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220528@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77923&edit=1
ID: 77923
User updated by: 2317216477 at qq dot com
Reported by: 2317216477 at qq dot com
Summary: preg_* function cannot get correct result
Status: Open
Type: Bug
Package: PCRE related
Operating System: any
PHP Version: 7.2.18RC1
Block user comment: N
Private report: N
New Comment:
You can use "ini_set" and set "pcre.jit" to 0 before preg_* functions to fix the
problem
I don't know why it happens and hope someone can fix it basically
Previous Comments:
------------------------------------------------------------------------
[2019-04-19 11:23:20] 2317216477 at qq dot com
Description:
------------
preg_* function cannot get correct result in php7.0~7.2 sometimes
the test string is too long so I put a test script on my github
page(https://github.com/icy2003/php/blob/master/samples/php7preg_bug.php)
you can test this script on this website:https://3v4l.org/,or you
can install php 7.0~7.2 in local environment
Test script:
---------------
https://github.com/icy2003/php/blob/master/samples/php7preg_bug.php
Expected result:
----------------
my pattern expected some results but in php7.0~7.2 it will be empty array!!
you can use "ini_set" and set "pcre.jit" to 0 before preg_* functions to fix the
problem
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77923&edit=1