Re: [PHP-DEV] [PATCH] ob_get_level()

2001-12-02 Thread Derick Rethans
Hello Yasuo, I applied the patch (and added documentation for it) Derick On Mon, 3 Dec 2001, Yasuo Ohgaki wrote: > I needed to know output buffering nesting level to replace output > when there is error. This is the patch for this. > > int ob_get_level(void) Derick Rethans --

Re: [PHP-DEV] [PATCH] ob_get_level()

2001-12-02 Thread Yasuo Ohgaki
Yasuo Ohgaki wrote: > Derick Rethans wrote: > >> Hello, >> >> On Mon, 3 Dec 2001, Yasuo Ohgaki wrote: >> >> +/* {{{ proto integer ob_get_level(void) >> + Return the nesting level of the output buffer */ >> +PHP_FUNCTION(ob_get_level) >> +{ >> + Z_LVAL_P(return_value) = OG(ob_nesting_leve

Re: [PHP-DEV] [PATCH] ob_get_level()

2001-12-02 Thread Yasuo Ohgaki
Derick Rethans wrote: > Hello, > > On Mon, 3 Dec 2001, Yasuo Ohgaki wrote: > > +/* {{{ proto integer ob_get_level(void) > + Return the nesting level of the output buffer */ > +PHP_FUNCTION(ob_get_level) > +{ > + Z_LVAL_P(return_value) = OG(ob_nesting_level); > + Z_TYPE_P(return_va

Re: [PHP-DEV] [PATCH] ob_get_level()

2001-12-02 Thread Derick Rethans
Hello, On Mon, 3 Dec 2001, Yasuo Ohgaki wrote: +/* {{{ proto integer ob_get_level(void) + Return the nesting level of the output buffer */ +PHP_FUNCTION(ob_get_level) +{ + Z_LVAL_P(return_value) = OG(ob_nesting_level); + Z_TYPE_P(return_value) = IS_LONG; RETURN_LONG (OG(ob_nestin

[PHP-DEV] [PATCH] ob_get_level()

2001-12-02 Thread Yasuo Ohgaki
I needed to know output buffering nesting level to replace output when there is error. This is the patch for this. int ob_get_level(void) Return current output buffering nesting level. It includes output buffers set in php.ini (output_buffer, output_handler and zlib.output_compression if set) --