|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-07-30 19:11 UTC] mike@php.net
-Status: Open
+Status: Feedback
[2013-07-30 19:11 UTC] mike@php.net
[2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
[2013-11-04 20:28 UTC] aleksandr dot makov at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
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