Bug #43185 [Fbk->NoF]: preg_replace cause exit signal Illegal instruction
| From: | php-bugs at lists dot php dot net | Date: | Sun, 31 Mar 2019 04:22:05 +0000 |
| Subject: | Bug #43185 [Fbk->NoF]: preg_replace cause exit signal Illegal instruction | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220266@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: php-bugs@lists.php.net
Reported by: nicolas dot fruit+phpbug at gmail dot com
Summary: preg_replace cause exit signal Illegal instruction
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: PCRE related
Operating System: OS X 10.10.4
PHP Version: 5.6.10
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2019-03-18 16:25:04] nikic@php.net
Does anyone still see this issue with PHP 7?
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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