|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-07-22 09:04 UTC] bugzilla77 at gmail dot com
Description:
------------
Regresion (PHP 5.6.11 no bugy)
Test script:
---------------
<?php
var_dump(preg_match('/^(A{1,2}B)+$/',str_repeat('AB',8192)));
?>
Expected result:
----------------
int(1)
Actual result:
--------------
bool(false)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 11:00:01 2025 UTC |
There's an even easier case that fails: preg_match('~(a)*~', str_repeat('a', 5431), $match); http://3v4l.org/CGSqa