php-8.0.30-src/ext/ffi/tests/012.phpt

17 lines
318 B
PHP

--TEST--
FFI 012: serialization
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--INI--
ffi.enable=1
--FILE--
<?php
try {
var_dump(serialize(FFI::new("int[2]")));
} catch (Throwable $e) {
echo get_class($e) . ": " . $e->getMessage()."\n";
}
?>
--EXPECT--
Exception: Serialization of 'FFI\CData' is not allowed