Bug #50618 [NoF->Bgs]: php crashed when preg_replace on some case.

From: Date: Sun, 25 Apr 2010 18:34:06 +0000
Subject: Bug #50618 [NoF->Bgs]: php crashed when preg_replace on some case.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-149890@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=50618&edit=1 ID: 50618 Updated by: felipe@php.net Reported by: sarun37823 at bigfoot dot com Summary: php crashed when preg_replace on some case. -Status: No Feedback +Status: Bogus Type: Bug Package: PCRE related Operating System: Linux PHP Version: 5.2.12 New Comment: Not a PHP bug. Previous Comments: ------------------------------------------------------------------------ [2010-01-08 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-12-31 12:42:36] pajoye@php.net Does it work on windowns and not on linux? ------------------------------------------------------------------------ [2009-12-31 07:51:42] sarun37823 at bigfoot dot com I just test code above with php 5.2.5 on WinXP It's work fine. ------------------------------------------------------------------------ [2009-12-31 07:43:42] sarun37823 at bigfoot dot com Add: I think it's about * in (?:.(?!made an edit|<\/?li))* Main Idea of this regular expression is to replace <li> to </li> with no li tag inside and with "made an edit" string ------------------------------------------------------------------------ [2009-12-31 07:17:57] sarun37823 at bigfoot dot com if there's no <li></li> in test file or i just replace <li></li> with <li><!--something--></li> It can work properly. ------------------------------------------------------------------------ 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 http://bugs.php.net/bug.php?id=50618 -- Edit this bug report at http://bugs.php.net/bug.php?id=50618&edit=1

« previous php.bugs (#149890) next »