1--TEST-- 2Bug #79096 (FFI Struct Segfault) 3--EXTENSIONS-- 4ffi 5zend_test 6--FILE-- 7<?php 8$header = <<<HEADER 9struct bug79096 { 10 uint64_t a; 11 uint64_t b; 12}; 13 14struct bug79096 bug79096(void); 15HEADER; 16 17$ffi = FFI::cdef($header); 18$struct = $ffi->bug79096(); 19var_dump($struct); 20?> 21--EXPECTF-- 22object(FFI\CData:struct bug79096)#%d (2) { 23 ["a"]=> 24 int(1) 25 ["b"]=> 26 int(1) 27} 28