|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-12-22 12:23 UTC] scottmac@php.net
[2008-12-22 12:23 UTC] scottmac@php.net
[2008-12-22 12:23 UTC] scottmac@php.net
[2008-12-22 12:57 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 18:00:01 2025 UTC |
Description: ------------ If the match for a regex is very long, it fails. Reproduce code: --------------- $a='A'; for ($i = 0; $i < 1024; $i++) $a.='a'; $a.='A'; var_dump(preg_match('/A(.*?)A/', $a, $m)); $a='A'; for ($i = 0; $i < 131072; $i++) $a.='a'; $a.='A'; var_dump(preg_match('/A(.*?)A/', $a, $m)); Expected result: ---------------- int(1) int(1) Actual result: -------------- int(1) int(0)