#43185 [Opn->Fbk]: preg_replace cause exit signal Illegal instruction

From: Date: Sun, 11 Nov 2007 18:56:14 +0000
Subject: #43185 [Opn->Fbk]: preg_replace cause exit signal Illegal instruction
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119462@lists.php.net to get a copy of this message
ID: 43185 Updated by: jani@php.net Reported By: nicolas dot fruit+phpbug at gmail dot com -Status: Open +Status: Feedback Bug Type: PCRE related Operating System: Mac PHP Version: 5.2.4 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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*([@{}:;,]|\)\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

« previous php.bugs (#119462) next »