diff options
author | Derick Rethans <derick@php.net> | 2001-12-03 07:43:53 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2001-12-03 07:43:53 +0000 |
commit | 1f14640b3e756a6f5523b392bba8605bdf55d92d (patch) | |
tree | 6fc99252d414e0cf546f2cfb822f7620e19082d2 /main/output.c | |
parent | 03b5cb6775aeb4adf82d31a05be6d1034807d584 (diff) | |
download | php-git-1f14640b3e756a6f5523b392bba8605bdf55d92d.tar.gz |
- Added ob_get_level, which returns the nesting level of the output buffering
mechanism. (patch by Yasuo Ohgaki <yasuo_ohgaki@yahoo.com>)
@- Added ob_get_level, which returns the nesting level of the output buffering
@ mechanism. (Yasuo, Derick)
Diffstat (limited to 'main/output.c')
-rw-r--r-- | main/output.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/output.c b/main/output.c index 92f2ef2d3d..80b9a0bb34 100644 --- a/main/output.c +++ b/main/output.c @@ -575,6 +575,14 @@ PHP_FUNCTION(ob_get_contents) } /* }}} */ +/* {{{ proto integer ob_get_level(void) + Return the nesting level of the output buffer */ +PHP_FUNCTION(ob_get_level) +{ + RETURN_LONG (OG(ob_nesting_level)); +} +/* }}} */ + /* {{{ proto string ob_get_length(void) Return the length of the output buffer */ PHP_FUNCTION(ob_get_length) |