We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53d7057 commit e747107Copy full SHA for e747107
1 file changed
src/FFI.php
@@ -278,11 +278,12 @@ private static function init(): void
278
}
279
280
// detect the most common installation problems
281
- if (!extension_loaded('ffi')) {
282
- throw new Exception('FFI extension not loaded');
+ if (!extension_loaded("ffi")) {
+ throw new Exception("FFI extension not loaded");
283
284
- if (ini_get('ffi.enable') != 'true') {
285
- throw new Exception("ffi.enable not set to 'true'");
+ $enable = ini_get("ffi.enable");
+ if ($enable != "true") {
286
+ throw new Exception("ffi.enable set to '$enable', not 'true'");
287
288
289
$vips_libname = self::libraryName("libvips", 42);
0 commit comments