Re: ob_start() and a callback function within a class, not updating ob_get_level().
| From: | Richard Lynch | Date: | Mon, 20 Nov 2006 23:48:19 +0000 |
| Subject: | Re: ob_start() and a callback function within a class, not updating ob_get_level(). | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244918@lists.php.net to get a copy of this message | ||
On Thu, November 16, 2006 7:35 am, Mathijs wrote:
> I have a question about ob_start() and ob_get_level().
>
> When i use ob_start(), and then check ob_get_level(), it shows me 1.
> This is a normal behavior.
>
> Now when i do the following ob_start(array('ClassName',
> 'ClassMethod')).
> It does execute the methode, but it doesn't update ob_get_level().
>
> Is this a normal behavior?
Can you show us where/how you checked ob_get_level()?
Cuz I don't really understand what the OOP stuff should do for a
callback, and would have to re-read the docs, but my first guess is
you do the ob_get_level() after the buffer is all done and the
callback is finished and gone, so the level is back to 0...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?