Bug #15247: preg_match('/(.|\n)*/',$a,$b) crashes
| From: | beavergr at pilot dot msu dot edu | Date: | Sun, 27 Jan 2002 19:59:37 +0000 |
| Subject: | Bug #15247: preg_match('/(.|\n)*/',$a,$b) crashes | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-78260@lists.php.net to get a copy of this message | ||
From: beavergr@pilot.msu.edu
Operating system: Win98
PHP version: 4.0.6
PHP Bug Type: Reproducible crash
Bug description: preg_match('/(.|\n)*/',$a,$b) crashes
if the size of $a is very large, php crashes. I replaced (.|\n)* with the
better [\w\W]* and it stopped crashing. I'm not positive what the size
limit is, the script that produced the crash is quite large and complex.
print_r(get_loaded_extensions()) produces
Array ( [0] => standard [1] => bcmath [2] => Calendar [3] => com [4] =>
variant [5] => ftp [6] => mysql [7] => odbc [8] => pcre [9] => session
[10] => xml [11] => wddx [12] => gd [13] => pdf [14] => pgsql [15] => zlib
[16] => Zend Optimizer [17] => apache )
I'm using Apache 1.3.20
--
Edit bug report at: http://bugs.php.net/?id=15247&edit=1