Class object not working inside ob_start callback
<p>I don't know why, but this code worked for me a month ago... maybe I upgraded the php but can't remember. Tried this with PHP 5.2.17 and 5.3.6</p>

<p>Why is it not possible to use a class object inside the callback of a ob_start function?  </p>

<pre><code>&lt;?php
$f=new stdClass();
$f-&gt;title="awesome Title";

function callback($buffer) 
{
    global $f;
    $buffer=str_replace("###TITLE###", $f-&gt;title, $buffer);
    return $buffer;
}
ob_start("callback");
?&gt;

This is the ###TITLE###
</code></pre>

<p>Output is:  </p>

<pre><code>PHP Notice:  Trying to get property of non-object in /Users/qxxx/Sites/test/test.php on line 8
This is the 
</code></pre>

<p>should be:  </p>

<blockquote>
  <p>This is the awesome Title</p>
</blockquote>
