Jan Lehnardt wrote: > Hi, > is ob_get_level() supposed to return 2 after the first ob_start 3 after > the second ...? > > jan
I guess you are writing test scripts, right? There are cases you need to consider. If you enable output_buffer ob_get_level() == 1 If you enable zlib.output_compression ob_get_level() == 2 If you enalbe zlib.output_compression and trans-sid is active ob_get_level() == 3 ob_start() increment buffer level by 1. So if you are writing test script, you probably want to get diff of level before and after ob_start(). -- Yasuo Ohgaki -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php