Kod
function parseTagsRecursive($string)
{
$regex = '#\[quote]((?:[^[]|\[(?!/?quote])|(?R))+)\[/quote]#';
if(is_array($string)) {
$input = "<div class=\"quote\">\n";
$input .= " <div class=\"top\"></div>\n";
$input .= " <div class=\"mid\">";
$input .= $string[1];
$input .= " </div>";
$input .= "</div>";
}
return preg_replace_callback($regex, 'parseTagsRecursive', $string);
}
{
$regex = '#\[quote]((?:[^[]|\[(?!/?quote])|(?R))+)\[/quote]#';
if(is_array($string)) {
$input = "<div class=\"quote\">\n";
$input .= " <div class=\"top\"></div>\n";
$input .= " <div class=\"mid\">";
$input .= $string[1];
$input .= " </div>";
$input .= "</div>";
}
return preg_replace_callback($regex, 'parseTagsRecursive', $string);
}
Wywołuje ją tak:
$string = parseTagsRecursive($string);
W momencie kiedy $string zawiera [quote] Apache przestaje działać

Serwer to XAMPP na Windows Vista, strona, a w tym przypadku forum budowane jest na cakePHP.
Jakieś pomysły?
PS: Parser na forum mógłby nie edytować BBCode wewnątrz