Hi Bob Glamm, you wrote:

[...]

Seems to be the same bug as in:

function singleton()
{
        static $instance;
        if (!isset($instance)) {
                $instance = &new SomeClass;
        }
        return $instance;
}

If you use "&new" notation in your script, 
you'll see that $x will be NULL, too.

Regards,
-- 
Michael - < mike(@)php.net >

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to