xref: /PHP-8.2/ext/ffi/tests/012.phpt (revision bd9f4fa6)
1--TEST--
2FFI 012: serialization
3--EXTENSIONS--
4ffi
5--INI--
6ffi.enable=1
7--FILE--
8<?php
9try {
10    var_dump(serialize(FFI::new("int[2]")));
11} catch (Throwable $e) {
12    echo get_class($e) . ": " . $e->getMessage()."\n";
13}
14?>
15--EXPECT--
16Exception: Serialization of 'FFI\CData' is not allowed
17