#50835 [Opn->Bgs]: Unexpected PREG_BACKTRACK_LIMIT_ERROR

From: Date: Mon, 25 Jan 2010 15:58:52 +0000
Subject: #50835 [Opn->Bgs]: Unexpected PREG_BACKTRACK_LIMIT_ERROR
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-146914@lists.php.net to get a copy of this message
ID: 50835 Updated by: jani@php.net Reported By: analogue at glop dot org -Status: Open +Status: Bogus Bug Type: PCRE related Operating System: Debian GNU/Linux PHP Version: 5.2.12 New Comment: Ask PCRE developers. Previous Comments: ------------------------------------------------------------------------ [2010-01-25 15:54:07] analogue at glop dot org Description: ------------ Hi, When I try to preg_replace a 2654 long string, I get a PREG_BACKTRACK_LIMIT_ERROR It's strange because as shown, the PHP pcre.backtrack_limit is set as the default 100000 limit. Why does it hits the limit with a short string like this ? Thanks Reproduce code: --------------- <http://pastebin.com/fa42d78d> Expected result: ---------------- 100000 2653 2653 Actual result: -------------- 100000 2653 Error: PREG_BACKTRACK_LIMIT_ERROR ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50835&edit=1

« previous php.bugs (#146914) next »