# Showstopper: ob_start() is b0rked

- Thread: https://externals.io/message/1252
- Original archive: https://news-web.php.net/php.internals/1252
- Started by Sebastian Bergmann on 2003-05-05T08:25:53+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #1252 — Sebastian Bergmann — 2003-05-05T08:25:53+00:00

URL: https://externals.io/message/1252#1252

The following code

     <?php
     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/
