xref: /PHP-8.3/ext/ffi/tests/014.phpt (revision 4acf0084)
1--TEST--
2FFI 014: Size of nested types
3--EXTENSIONS--
4ffi
5--INI--
6ffi.enable=1
7--FILE--
8<?php
9$ffi = FFI::cdef();
10
11var_dump(FFI::sizeof($ffi->new("uint32_t[2]")));
12var_dump(FFI::sizeof($ffi->new("uint32_t([2])")));
13var_dump(FFI::sizeof($ffi->new("uint32_t([2])[2]")));
14?>
15ok
16--EXPECT--
17int(8)
18int(8)
19int(16)
20ok