Download src/php/php-src/ext/ffi/tests/010.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ffi/tests/010.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ffi/tests/010.phpt
-
curl -L -o 010.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ffi/tests/010.phpt
242 Bytes
| --TEST-- | |
| FFI 010: string() | |
| --EXTENSIONS-- | |
| ffi | |
| --INI-- | |
| ffi.enable=1 | |
| --FILE-- | |
| $a = FFI::cdef()->new("int[3]"); | |
| FFI::memset($a, ord("a"), FFI::sizeof($a)); | |
| var_dump(FFI::string($a, FFI::sizeof($a))); | |
| --EXPECT-- | |
| string(12) "aaaaaaaaaaaa" |