Bug #43185 [ReO->Fbk]: preg_replace cause exit signal Illegal instruction
| From: | nikic@php.net | Date: | Mon, 18 Mar 2019 16:25:04 +0000 |
| Subject: | Bug #43185 [ReO->Fbk]: preg_replace cause exit signal Illegal instruction | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220058@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=43185&edit=1
ID: 43185
Updated by: nikic@php.net
Reported by: nicolas dot fruit+phpbug at gmail dot com
Summary: preg_replace cause exit signal Illegal instruction
-Status: Re-Opened
+Status: Feedback
Type: Bug
Package: PCRE related
Operating System: OS X 10.10.4
PHP Version: 5.6.10
Block user comment: N
Private report: N
New Comment:
Does anyone still see this issue with PHP 7?
Previous Comments:
------------------------------------------------------------------------
[2015-07-08 14:25:26] art dot sormy at gmail dot com
Minor update: switching Apache MPM from WORKER to PREFORK is fixing problem
------------------------------------------------------------------------
[2015-07-08 02:25:20] art dot sormy at gmail dot com
The same situation:
* os x 10.10.4
* homebrew
* php 5.6.10
* apache 2.4.12
It works from command line, but doesn't work from apache.
<?php
$data = file_get_contents("test.html");
$regexp = '!(?:\s*<tr class="row\d+">(?:\s*'
. '<td class="column\d+(\s+style\d+
[a-z])?"> <\/td>)*\s*<\/tr>)+!s';
$data = preg_replace($regexp, "", $data);
var_dump($data);
test.html is here https://gist.github.com/sormy/b77420c0f0a9a50cbef1
this code will cause:
[Tue Jul 07 21:19:00.409400 2015] [core:notice] [pid 82348:tid 140735326831360] AH00052: child pid
83095 exit signal Illegal instruction (4)
------------------------------------------------------------------------
[2009-12-28 20:04:00] ddeineka at gmail dot com
Same problem with customer's Drupal. Fresh up-to-date ports, FreeBSD 8.0-RELEASE, PHP 5.2.11,
Apache 2.2.14.
------------------------------------------------------------------------
[2009-11-24 20:36:13] me at skylord dot ru
Same problem... PHP 5.2.11, FreeBSD 7.2, Apache 2.2.11, Drupal 6.14
------------------------------------------------------------------------
[2009-10-29 08:24:06] d dot arnolds at gmail dot com
Same problem here with PHP 5.2.3, Apache 2.0.59 and Drupal
6.14 on FreeBSD 6.3.
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=43185
--
Edit this bug report at https://bugs.php.net/bug.php?id=43185&edit=1