Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
PHP Bug - Segfault in gc_zval_possible_root
class ParentClass
private static $_OBJECTS;
public static function Get()
self::$_OBJECTS[1] = new ChildClass();
return self::$_OBJECTS[1];
class ChildClass extends ParentClass
public $Manager;
function __construct()
$this->Manager = $this;
public static function &GetCurrent()
return ChildClass::Get();
public static function &Get()
return parent::Get();
$staff = ChildClass::GetCurrent();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.