ID:               32312
 User updated by:  xanthor at xanthor dot tk
 Reported By:      xanthor at xanthor dot tk
 Status:           Bogus
 Bug Type:         PCRE related
 Operating System: *
 PHP Version:      4CVS, 5CVS (2005-03-19)
 New Comment:

And were are submited PCRElib bugs ?


Previous Comments:
------------------------------------------------------------------------

[2005-04-20 09:04:40] [EMAIL PROTECTED]

It's the PCRElib limitation again..


------------------------------------------------------------------------

[2005-03-19 00:07:33] [EMAIL PROTECTED]

No, it doesn't return 'bool(true)' as preg_match() returns an integer.
Try with something like 'var_dump(preg_match...' 
Also RTFM.


------------------------------------------------------------------------

[2005-03-16 21:31:52] xanthor at xanthor dot tk

It works with 4.3.2

------------------------------------------------------------------------

[2005-03-15 10:32:34] xanthor at xanthor dot tk

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.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32312&edit=1

Reply via email to