dis-bench / src /php /php-src /ext /ffi /tests /012.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
297 Bytes
--TEST--
FFI 012: serialization
--EXTENSIONS--
ffi
--INI--
ffi.enable=1
--FILE--
<?php
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