Bug #43185 [Com]: preg_replace cause exit signal Illegal instruction

From: Date: Wed, 08 Jul 2015 02:25:20 +0000
Subject: Bug #43185 [Com]: preg_replace cause exit signal Illegal instruction
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194195@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 Comment by: art dot sormy at gmail dot com Reported by: nicolas dot fruit+phpbug at gmail dot com Summary: preg_replace cause exit signal Illegal instruction Status: No Feedback Type: Bug Package: PCRE related Operating System: Mac PHP Version: 5.2.4 Block user comment: N Private report: N New Comment: 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])?">&nbsp;<\/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) Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2009-07-01 21:14:06] btmash at gmail dot com I am having the same problem with PHP 5.2.9, Apache 2.2.11 and Drupal 6.12 on FreeBSD 7.1. ------------------------------------------------------------------------ [2008-04-17 05:24:49] sabapamu at mizuho-sc dot com I am having the same issue on Apache/2.2.8 (Unix) PHP/5.2.5 on RedHat Linux 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

« previous php.bugs (#194195) next »