mirror of
https://github.com/php/php-src.git
synced 2026-04-21 15:08:16 +02:00
289822d3ad
We call dlerror when a library failed to load properly. Closes GH-9913.
17 lines
303 B
PHP
17 lines
303 B
PHP
--TEST--
|
|
Test that FFI::load returns a detailed error when failling 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)
|