[Bug 369737] Re: preg_replace_callback segfaults

2009-08-25 Thread fiasco
From what I understand this is a PCRE extension issue with recursive
regex. This error occured for me when the mediawiki filter was trying to
parse a with the following regex:

  #^\{\|(.*?)(?:^\|\+(.*?))?(^(?:((?R))|.)*?)^\|}#msi

-- 
preg_replace_callback segfaults
https://bugs.launchpad.net/bugs/369737
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 369737] Re: preg_replace_callback segfaults

2009-08-24 Thread fiasco
This is happening to me, I found this bug in the PEAR mediawiki filter. the 
code from there is:
?php
function parse()
{
error_log(parser called);
$this-wiki-source = preg_replace_callback(
$this-regex,
array($this, 'process'),
$this-wiki-source
);
error_log(Returning parse);
}
?

Potential things to look at: the regex is getting confused? I'm also
using macrons in my content.

-- 
preg_replace_callback segfaults
https://bugs.launchpad.net/bugs/369737
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs