ID: 28875 Updated by: [EMAIL PROTECTED] Reported By: amoljak at cox dot net -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Windows 2000 Server PHP Version: 4.3.6 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2004-06-21 22:58:29] amoljak at cox dot net Description: ------------ Note the extra ] in the regex. Try to load this page three times and it will crash the third time. Reproduce code: --------------- <?php $filecontent = "my name is amol"; $regex = "/(^|[^a-zA-Z0-9-])([Nn]on[-s? []]]degrees? [Ss]tudents?)([^a-zA-Z0-9-]|$)/es"; //preg_match_all($regex, $filecontent , $matches, PREG_OFFSET_CAPTURE); preg_match($regex, $filecontent , $matches, PREG_OFFSET_CAPTURE); print "matches = $matches<br>"; ?> Expected result: ---------------- This is from end user's code and I don't know what he expected. But he was able to crash the server... thats bad. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28875&edit=1
