Re: Segfault in ob_*() callback

From: Date: Sun, 01 Sep 2002 16:53:25 +0000
Subject: Re: Segfault in ob_*() callback
References: 1 2 3 4 5 6 7 8 9  Groups: php.dev 
Request: Send a blank email to php-dev+get-87691@lists.php.net to get a copy of this message
At 18:02 01.09.2002, Sebastian Bergmann wrote:
Marcus Börger wrote: The problem here again is that in ob handlers no ob_xxx() function can be called. FYI: I know that I shouldn't do that, but I tried
    <?php
    class Test {
      function Test() {
        ob_start(array($this, 'transform'));
      }
      function transform($buffer) {
        ob_end_clean();
        return $buffer;
      }
    }
    $test = new Test;
    ?>
out of curiosity, while trying to get Cache_Lite working with XML_Transformer. It'd be okay IMHO to prohibit ob_*() calls inside a handler.
Perhaps ob_clean() and ob_flush() should be exceptions to this.

« previous php.dev (#87691) next »