Bug #75207 [Opn->Fbk]: preg_match bug

From: Date: Mon, 18 Sep 2017 16:22:08 +0000
Subject: Bug #75207 [Opn->Fbk]: preg_match bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211225@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75207&edit=1 ID: 75207 Updated by: cmb@php.net Reported by: qflbapp at gmail dot com Summary: preg_match bug -Status: Open +Status: Feedback Type: Bug Package: PCRE related Operating System: Linux Ubuntu PHP Version: 7.1.9 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: > I cannot reproduce a problem with the given pattern […] Neither can I with PCRE 8.41 (PCRE 8.38 exhibits the bad behavior, though). @qflbapp Please provide the PCRE_VERSION you are using. > […] with or without the backslashes (does PHP remove them?). PHP requires to enclose the regular expression with an arbitrary character (in this case a slash has been chosen), to separate the actual regexp from the modifier characters (if any). Previous Comments: ------------------------------------------------------------------------ [2017-09-18 14:30:51] Philip dot Hazel at gmail dot com It has now been reported to the PCRE maintainers, but with no information about the PCRE version. I cannot reproduce a problem with the given pattern - it gives an immediate "unmatched parentheses" error, with or without the backslashes (does PHP remove them?). ------------------------------------------------------------------------ [2017-09-15 02:02:39] qflbapp at gmail dot com I did't report to the PCRE maintainers. ------------------------------------------------------------------------ [2017-09-14 21:09:08] stas@php.net This looks like PCRE issue, did you report it to the PCRE maintainers? ------------------------------------------------------------------------ [2017-09-14 08:46:59] qflbapp at gmail dot com Description: ------------ php test.php *** Error in `php': double free or corruption (!prev): 0x0000000002b0dec0 *** Aborted Test script: --------------- <?php preg_match("/š(?:F?+(?:^(?(R)a+\"){99}-))(?J)(?'R'(?'R'<((?'RR'(?'R'\){97)?J)?J)(?'R'(?'R'\){99|(:(?|(?'R')(\k'R')|((?'R')))H'R'R)(H'R))))))/","$a*b\dc"); ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75207&edit=1

« previous php.bugs (#211225) next »