--TEST-- Weak reference to \FFI\CData --EXTENSIONS-- ffi --INI-- ffi.enable=1 --FILE-- get() === $cdata_value); var_dump($ref_array->get() === $cdata_array); var_dump($ref_free->get() === $cdata_free); unset($cdata_value); unset($cdata_array); unset($cdata_free); var_dump($ref_value->get() === null); var_dump($ref_array->get() === null); var_dump($ref_free->get() === null); ?> --EXPECTF-- bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)