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.
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php