Re: ob_get_level

From: Date: Mon, 25 Mar 2002 00:29:07 +0000
Subject: Re: ob_get_level
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-81739@lists.php.net to get a copy of this message
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

« previous php.dev (#81739) next »