I was trying to figure out how to set a ob_start() output_callback function from within a class, so for reference I looked at the DB_eSession class because I remembered that it set the session save handler functions from within the class. Their code goes like this:
session_set_save_handler(array(&$this, 'sessDBOpen'),
array(&$this, 'sessDBClose'),
array(&$this, 'sessDBRead'),
array(&$this, 'sessDBWrite'),
array(&$this, 'sessDBDestroy'),
array(&$this, 'sessDBGC')
))
So I did the same and it worked, but I have absolutely no clue how. Can anyone explain it to me?