ID: 43185 Comment by: sabapamu at mizuho-sc dot com Reported By: nicolas dot fruit+phpbug at gmail dot com Status: No Feedback Bug Type: PCRE related Operating System: Mac PHP Version: 5.2.4 New Comment:
I am having the same issue on Apache/2.2.8 (Unix) PHP/5.2.5 on RedHat Linux 3 Previous Comments: ------------------------------------------------------------------------ [2008-04-11 15:36:09] nejc at skoberne dot net I am having the same problem with PHP 5.2.5, Apache 2.2.6 and Drupal 4.7 on FreeBSD 7.0. ------------------------------------------------------------------------ [2008-03-10 00:10:31] lms at esoterica dot pt Does not work on Darwin Kernel Version 9.2.0 and Apache/2.2.6 either (tested under PHP 5.2.4 as well). Crashes with the same message as reported. The release notes for PHP 5.2.5 do not mention any fix for this particular bug. ------------------------------------------------------------------------ [2007-11-19 01:00:01] 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". ------------------------------------------------------------------------ [2007-11-11 18:56:14] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi ------------------------------------------------------------------------ [2007-11-04 14:21:02] nicolas dot fruit+phpbug at gmail dot com Description: ------------ preg_replace cause a "exit signal Illegal instruction (4)" in the apache log. My config: Mac OS Darwin Kernel Version 8.9.0 Apache/2.0.61 (same error with Apache 2.2) PHP Version 5.2.4 phpinfo related to regex: mbstring: - Multibyte regex (oniguruma) version 4.4.4 - Multibyte regex (oniguruma) backtrack check On The bug come from Drupal 5.2 /includes/common.inc function drupal_build_css_cache Reproduce code: --------------- <? $data= " /* ** Details: http://www.positioniseverything.net/easyclearing.html */ "; $data = preg_replace('< \s*([EMAIL PROTECTED]:;,]|\)\s|\s\()\s* | /\*([^*\\\\]|\*(?!/))+\*/ | [\n\r] >x', '\1', $data); echo $data; ?> Expected result: ---------------- Remove the css "comment" on the string Actual result: -------------- exit signal Illegal instruction (4)" in the apache log. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43185&edit=1