ru_php/ext/ffi/tests/ffi_load_error.phpt

17 lines
302 B
PHP

--TEST--
Test that FFI::load returns a detailed error when failing to load a shared library
--EXTENSIONS--
ffi
--INI--
ffi.enable=1
--FILE--
<?php
try {
FFI::load(__DIR__ . "/ffi_load_error.h");
} catch (FFI\Exception $ex) {
printf($ex->getMessage());
}
?>
--EXPECTF--
Failed loading '%s' (%s)