Mam taką funkcje:

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);
    }


Wywołuje ją tak:
  1. $string = parseTagsRecursive($string);


W momencie kiedy $string zawiera [quote] Apache przestaje działać smile.gif

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
  1.