ID:               36463
 Comment by:       liviu dot mirea at gmail dot com
 Reported By:      sthapa at site5 dot com
 Status:           Feedback
 Bug Type:         PCRE related
 Operating System: Linux
 PHP Version:      5.1.2
 New Comment:

I tested it again and it crashed on my current configuration: PHP
5.3.1, Apache/2.2.14 (Win32), Windows 7 (64 bit)


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

[2010-01-19 16:06:51] paj...@php.net

Which web server? Apache?

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

[2010-01-19 16:02:06] stijn_koopal at hotmail dot com

Same problem with code of liviu dot mirea at gmail dot com.
OS: Windows 7 (32 bit)
PHP: 5.3.1

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

[2009-08-15 12:56:11] liviu dot mirea at gmail dot com

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

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

[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] m...@php.net

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



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

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

Reply via email to