Download src/php/php-src/ext/ffi/tests/042.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ffi/tests/042.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ffi/tests/042.phpt
-
curl -L -o 042.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ffi/tests/042.phpt
299 Bytes
| --TEST-- | |
| FFI 042: Next array element | |
| --EXTENSIONS-- | |
| ffi | |
| --INI-- | |
| ffi.enable=1 | |
| --FILE-- | |
| $a = FFI::cdef()->new("uint8_t[8]"); | |
| $a[] = 0; | |
| --EXPECTF-- | |
| Fatal error: Uncaught FFI\Exception: Cannot add next element to object of type FFI\CData in %s:3 | |
| Stack trace: | |
| #0 {main} | |
| thrown in %s on line 3 | |