I have this code
<?php
function testFunc($b){
ob_start();
echo "print from callback\n";
return ob_get_clean();
}
ob_start('testFunc');
echo 'print from buffer';
ob_end_flush();
But I have a following error ob_start(): Cannot use output buffering in output buffering display handlers
I expected the result
print from callback
Please, dont suggest simplify this code, because in my codebase I have nested buffers like this