Re: [PATCH] ob_get_level()
| From: | Yasuo Ohgaki | Date: | Sun, 02 Dec 2001 23:31:16 +0000 |
| Subject: | Re: [PATCH] ob_get_level() | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72292@lists.php.net to get a copy of this message | ||
Yasuo Ohgaki wrote:
Derick Rethans wrote:I should be more careful about spelling (and grammer :) Anyway, is anyone going to work on Bug#14226? If not, I'll post patch that counts number of internal handlers to prevent deleting them. Internal hanlders are registered before script execution, so it would be enough for the bug. (Is this still true with dl()?) I appreciate if someone is going to fix this bug, though. -- Yasuo OhgakiHello, 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) +{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)+ 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.