Edit report at https://bugs.php.net/bug.php?id=73114&edit=1
ID: 73114
Updated by: cmb@php.net
Reported by: martin dot larsson2 at gmail dot com
Summary: php segfault probably becouse OpenBSD wx
implementation
Status: Assigned
Type: Bug
Package: PCRE related
Operating System: OpenBSD
PHP Version: 7.0.11
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thanks. I'll have a closer look at the issue.
Previous Comments:
------------------------------------------------------------------------
[2016-09-19 17:03:09] martin dot larsson2 at gmail dot com
pcre-8.38p0 is the version installed.
and yes it works if I use pcre.jit=0
------------------------------------------------------------------------
[2016-09-19 15:38:10] cmb@php.net
What's your setting of pcre.jit? If it's 1, please set to 0 and
try again.
Also it would be helpful to know which version of libpcre you're
using.
------------------------------------------------------------------------
[2016-09-19 15:09:40] martin dot larsson2 at gmail dot com
Description:
------------
# php-7.0 broke.php
Abort trap (core dumped)
#
php segfault probably becouse of OpenBSD wx implementation, must stuff seem to work but preg_replace
segfaults php.
Test script:
---------------
<?php
$string = 'April 15, 2003';
$pattern = '/(\w+) (\d+), (\d+)/i';
$replacement = '${1}1,$3';
echo preg_replace($pattern, $replacement, $string);
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73114&edit=1