return $registry ? $registry : new stdClass;
static $registry = false;
function Reg() {
static $registry = null;
return (null === $registry) ? new stdClass : $registry;
}
function Reg() {
static $registry = null;
return $registry ?: new stdClass;
}