Code: Select all
function& blah()
{
static $obj = null;
$obj = new Test()
return $obj;
}
$ref =& blah();Can someone quickly see if I am correct in my assumption that PHP4 doesn't allow returning of static's by reference???
I'm wondering if because PHP references use a lookup table that maybe local variables (despite being static) do not become part of that same alias lookup??? Or something to that effect...
Can someone tell me what results you get?
Again PHP4