<?php
class C {
public $a {
get { return $this->a; }
}
}
function test(string $fusion, object $obj) {
var_dump($obj->a);
var_dump($obj);
}
$reflector = new ReflectionClass(C::class);
$obj = $reflector->newLazyGhost(function ($obj) {
});
test('Ghost', $obj);
Zend/zend_vm_execute.h:4057:8: runtime error: load of misaligned address 0x7f18e886918f for type 'void *', which requires 8 byte alignment
0x7f18e886918f: note: pointer points here