Per quale motivo ti serve di passare dei parametri aggiuntivi?
Che io sappi, un modo è usare delle variabili globali oppure un'oggetto:
Codice PHP:
<?php
class Handler {
var $test = '';
function ob_start_callback($content) {
return $content . $this->test;
}
}
$handler = new Handler();
$handler->test = ' World!';
ob_start(array(&$handler, 'ob_start_callback'));
echo('Hello');
?>