Download src/php/php-src/ext/ffi/tests/014.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 310 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ffi/tests/014.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ffi/tests/014.phpt
-
curl -L -o 014.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ffi/tests/014.phpt
310 Bytes
| --TEST-- | |
| FFI 014: Size of nested types | |
| --EXTENSIONS-- | |
| ffi | |
| --INI-- | |
| ffi.enable=1 | |
| --FILE-- | |
| $ffi = FFI::cdef(); | |
| var_dump(FFI::sizeof($ffi->new("uint32_t[2]"))); | |
| var_dump(FFI::sizeof($ffi->new("uint32_t([2])"))); | |
| var_dump(FFI::sizeof($ffi->new("uint32_t([2])[2]"))); | |
| ok | |
| --EXPECT-- | |
| int(8) | |
| int(8) | |
| int(16) | |
| ok |