xref: /PHP-8.0/ext/ffi/tests/012.phpt (revision f8d79582)
1--TEST--
2FFI 012: serialization
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
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