xref: /php-src/ext/ffi/tests/012.phpt (revision 4acf0084)
1--TEST--
2FFI 012: serialization
3--EXTENSIONS--
4ffi
5--INI--
6ffi.enable=1
7--FILE--
8<?php
9try {
10    var_dump(serialize(FFI::cdef()->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