Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1257 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90868 invoked from network); 5 May 2003 11:18:21 -0000 Received: from unknown (HELO nils.bezeqint.net) (192.115.106.38) by pb1.pair.com with SMTP; 5 May 2003 11:18:21 -0000 Received: from mr5.bezeqint.net (pip-15.bezeqint.net [192.115.106.15]) by nils.bezeqint.net (Bezeq International SMTP out Mail Server) with ESMTP id CC39973C for ; Mon, 5 May 2003 14:14:37 +0300 (IDT) Received: from mail.zend.com (bzq-117-235-230.cust.bezeqint.net [192.117.235.230]) by mr5.bezeqint.net (Mirapoint Messaging Server MOS 3.3.3-GR) with SMTP id AGW25625; Mon, 5 May 2003 14:18:16 +0300 (IDT) Received: (qmail 2279 invoked from network); 5 May 2003 11:18:14 -0000 Received: from localhost (HELO zeev-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 5 May 2003 11:18:14 -0000 Reply-To: zeev@zend.com Message-ID: <5.1.0.14.2.20030505141740.0492ebe8@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 05 May 2003 14:18:12 +0300 To: Sebastian Bergmann Cc: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Showstopper: ob_start() is b0rked From: zeev@zend.com (Zeev Suraski) Did you try to reduce it to a simpler structured example and see if it has to do with OO, or is it a 100% output buffering issue? Zeev At 11:25 05/05/2003, Sebastian Bergmann wrote: > The following code > > class Test { > function Test() { > ob_start( > array( > $this, 'transform' > ) > ); > } > > function transform($buffer) { > return 'bar'; > } > } > > $t = new Test; > ?> > foo > > outputs 'bar', as it is expected to do, with PHP 4.3.1. > > With PHP 4.3.2-RC and PHP 5.0.0-dev it outputs 'foo' which is just > plain wrong. > >-- > Sebastian Bergmann > http://sebastian-bergmann.de/ http://phpOpenTracker.de/ > > Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php