ID:               50835
 Updated by:       [email protected]
 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

Reply via email to