Why would someone use ob_start in this manner and what is the point?
- by meder
Something is failing in the class I copied over. It's not my class, but the relevant bit that fails is:
class foo {
function process() {
ob_start( array( &$this, 'parseTemplate' ) );
}
function parseTemplate(){}
}
Does anyone know what the ob_start expression is supposed to do? Call the parse_template method in the context of a copy of &$this? PHP Version is 5.3.2-1. I suspect that the class was coded for 5.0-5.2 and it breaks in 5.3? or could it be something else?