#32312 [NEW]: Error in PCRE
| From: | xanthor at xanthor dot tk | Date: | Tue, 15 Mar 2005 09:32:37 +0000 |
| Subject: | #32312 [NEW]: Error in PCRE | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-75364@lists.php.net to get a copy of this message | ||
From: xanthor at xanthor dot tk
Operating system: GNU/Linux
PHP version: 4.3.10
PHP Bug Type: PCRE related
Bug description: Error in PCRE
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 bug report at http://bugs.php.net/?id=32312&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32312&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32312&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32312&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32312&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32312&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32312&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32312&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32312&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32312&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32312&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32312&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32312&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32312&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32312&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32312&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32312&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32312&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32312&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32312&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32312&r=mysqlcfg