|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-16 21:31 UTC] xanthor at xanthor dot tk
[2005-03-19 00:07 UTC] sniper@php.net
[2005-04-20 09:04 UTC] sniper@php.net
[2005-05-09 02:28 UTC] xanthor at xanthor dot tk
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
Description: ------------ The following code returns a wrong result with some strings, but when we reduce them, it swich back to expected behaviour. Tested on PHP 4.3.10, 4.3.9, 5.0.2, and 5.0.3RC2 PCRE Library Version => 4.5 01-December-2003 Reproduce code: --------------- preg_match("/((.*<.*>.*)*.(.*<.+>.+<.>.+)*b)?/",'<><'.str_repeat('a',14).'>'.str_repeat('a',33).'<a>'.str_repeat('a',92).'<a>'.str_repeat('a',8).'<a>a') Expected result: ---------------- This code should return true Actual result: -------------- The code returns false. Reduce one of the str_repeat, and it'll return true.