Req #64212 [Fbk->NoF]: Ability to reference an active output buffer stack.

From: Date: Tue, 15 Oct 2013 11:54:36 +0000
Subject: Req #64212 [Fbk->NoF]: Ability to reference an active output buffer stack.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182220@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64212&edit=1 ID: 64212 Updated by: php-bugs@lists.php.net Reported by: aleksandr dot makov at gmail dot com Summary: Ability to reference an active output buffer stack. -Status: Feedback +Status: No Feedback Type: Feature/Change Request Package: Output Control Operating System: Any PHP Version: Irrelevant Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2013-07-30 19:11:53] mike@php.net How about ob_get_status(true) in PHP-5.4+? ------------------------------------------------------------------------ [2013-02-14 13:47:11] aleksandr dot makov at gmail dot com Description: ------------ Since we have ob_get_level() we kind of miss ability to reference that stack from nested active stacks. In recursive content generators this will avoid the need to loop through the final output to determine the bounds of nested stacks and do operations with that(those) segment(s), such as replacement and so on. Test script: --------------- ob_start(); echo "111"; // <-- this is the stack of interest ob_start(); echo "22"; ob_start(); echo "3"; $cur_stack_len = ob_get_length(); // length of current stack (level 3) is 1 $top_stack_len = get_length_of_ob_stack_by_level(1); // expected length here should be 3 (strlen("111") == 3) ob_end_clean(); ob_end_clean(); echo "some more chars to change length of stack 1"; ob_end_clean(); echo $top_stack_len; // I'm expecting to see 3 here. Expected result: ---------------- 3 Actual result: -------------- not implemented ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64212&edit=1

« previous php.bugs (#182220) next »