--TEST-- Bug #79571 (FFI: var_dumping unions may segfault) --EXTENSIONS-- ffi --SKIPIF-- --FILE-- new('my_union'); $union->num = 42; var_dump($union); var_dump($union->num); ?> --EXPECTF-- object(FFI\CData:union )#%d (2) { ["num"]=> int(42) ["str"]=> string(4) "0x2a" } int(42)