mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
bd9f4fa676
For rationale, see https://github.com/php/php-src/pull/6787 Make extension checks lowercase, add a special case for opcache that has internal name not matching .so filename. Extensions migrated in part 2: * dom * exif * fileinfo * ffi
17 lines
289 B
PHP
17 lines
289 B
PHP
--TEST--
|
|
FFI 012: serialization
|
|
--EXTENSIONS--
|
|
ffi
|
|
--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
|