1--TEST-- 2Test that FFI::load returns a detailed error when failling to load a shared library 3--EXTENSIONS-- 4ffi 5--INI-- 6ffi.enable=1 7--FILE-- 8<?php 9try { 10 FFI::load(__DIR__ . "/ffi_load_error.h"); 11} catch (FFI\Exception $ex) { 12 printf($ex->getMessage()); 13} 14?> 15--EXPECTF-- 16Failed loading '%s' (%s) 17