Download src/php/php-src/ext/ffi/tests/012.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ffi/tests/012.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ffi/tests/012.phpt
-
curl -L -o 012.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ffi/tests/012.phpt
297 Bytes
| --TEST-- | |
| FFI 012: serialization | |
| --EXTENSIONS-- | |
| ffi | |
| --INI-- | |
| ffi.enable=1 | |
| --FILE-- | |
| try { | |
| var_dump(serialize(FFI::cdef()->new("int[2]"))); | |
| } catch (Throwable $e) { | |
| echo get_class($e) . ": " . $e->getMessage()."\n"; | |
| } | |
| --EXPECT-- | |
| Exception: Serialization of 'FFI\CData' is not allowed | |