Closed
Description
Description
The following code:
<?php
class C {
public C $a = FOO;
}
$reflector = new ReflectionClass(C::class);
function test(string $name, object $obj) {
$clonedObj = clone $obj;
}
test('Proxy', $reflector->newLazyProxy(function () {
}));
Resulted in this output:
/php-src/Zend/zend_lazy_objects.c:716:3: runtime error: member access within null pointer of type 'zend_object' (aka 'struct _zend_object')
PHP Version
nightly
Operating System
ubuntu 22.04