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_value) = IS_LONG;
>
>
> RETURN_LONG (OG(ob_nesting_level)); seems nicer to me.
>
I need to remember more macros.
Thanks. :)
I need this function to write better script and work around bug
#14226. Real fix for #14226 may affect ob_get_level() behavior. It
may be good idea add this function after the fix.
(It may be better to have different output handler list for
handlers set in php.ini/module initilization)
--
Yasuo Ohgaki
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]