1--TEST-- 2Bug #79532 (sizeof off_t can be wrong) 3--EXTENSIONS-- 4ffi 5zend_test 6--FILE-- 7<?php 8$header = <<<HEADER 9void bug79532(off_t *array, size_t elems); 10HEADER; 11 12$ffi = FFI::cdef($header); 13$array = FFI::cdef()->new("off_t[3]"); 14$ffi->bug79532($array, 3); 15var_dump($array); 16?> 17--EXPECTF-- 18object(FFI\CData:int%d_t[3])#%d (3) { 19 [0]=> 20 int(0) 21 [1]=> 22 int(1) 23 [2]=> 24 int(2) 25} 26