--TEST-- Bug #80847 (Nested structs) --SKIPIF-- 0)) die('xfail libffi doesn\'t properly support passing big strctures by value on Windows/64'); ?> --FILE-- new('bug80847_02'); $x->a->b = 42; $x->a->c = 42.5; var_dump($x); $y = $ffi->ffi_bug80847($x); var_dump($x, $y); ?> --EXPECTF-- object(FFI\CData:struct bug80847_02)#%d (1) { ["a"]=> object(FFI\CData:struct bug80847_01)#%d (2) { ["b"]=> int(42) ["c"]=> float(42.5) } } object(FFI\CData:struct bug80847_02)#%d (1) { ["a"]=> object(FFI\CData:struct bug80847_01)#%d (2) { ["b"]=> int(42) ["c"]=> float(42.5) } } object(FFI\CData:struct bug80847_02)#%d (1) { ["a"]=> object(FFI\CData:struct bug80847_01)#%d (2) { ["b"]=> int(52) ["c"]=> float(32.5) } }