ID: 36463
Comment by: liviu dot mirea at gmail dot com
Reported By: sthapa at site5 dot com
Status: No Feedback
Bug Type: PCRE related
Operating System: Linux
PHP Version: 5.1.2
New Comment:
I have the same problem. Simply try the following simpler test case:
$count = 500;
$string = str_repeat("a", $count);
echo preg_match('/\A(
[\x09\x0A\x0D\x20-\x7E]
| [\xC2-\xDF][\x80-\xBF]
| \xE0[\xA0-\xBF][\x80-\xBF]
| [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}
| \xED[\x80-\x9F][\x80-\xBF]
| \xF0[\x90-\xBF][\x80-\xBF]{2}
| [\xF1-\xF3][\x80-\xBF]{3}
| \xF4[\x80-\x8F][\x80-\xBF]{2}
)*\z/x', $string);
If is doesn't crash, try increasing the $count variable.
This bug seems to be related (if not the same) with
http://bugs.php.net/bug.php?id=27070
I'm sorry but I can't believe this bug has been around for 5 years.
Tested on PHP 5.3.0 and Windows 7 64bits
Previous Comments:
------------------------------------------------------------------------
[2006-03-20 01:00:04] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2006-03-12 22:36:02] [email protected]
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2006-03-06 16:42:14] [email protected]
Don't assign bugs to me for code that I have no written before
discussing please.
------------------------------------------------------------------------
[2006-03-06 15:19:54] sthapa at site5 dot com
The comment on mar 5 has the requested information
------------------------------------------------------------------------
[2006-03-05 06:55:23] php36463 at signalsinsync dot com
http://www.signalsinsync.com/t.zip
(also fails with PHP 4.4.0 and 4.4.1)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/36463
--
Edit this bug report at http://bugs.php.net/?id=36463&edit=1