|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-04-16 10:57 UTC] bugzilla33 at gmail dot com
Description:
------------
preg_match crashes
Test script:
---------------
<?=preg_match('#^(A{1,2}B)+$#',str_repeat('AB',300));?>
Expected result:
----------------
preg_match no crash
Actual result:
--------------
preg_match crashes
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 09:00:01 2025 UTC |
str_repeat('AB',200) do not crash str_repeat('AB',300) crashes - browser freeze about 4sec and info - browser can not display siteWhen use #^(A{1}B)+$# instead of #^(A{1,2}B)+$# testcase returns 1 - no crash