Skip to content

Commit e747107

Browse files
committed
better message
1 parent 53d7057 commit e747107

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/FFI.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,12 @@ private static function init(): void
278278
}
279279

280280
// detect the most common installation problems
281-
if (!extension_loaded('ffi')) {
282-
throw new Exception('FFI extension not loaded');
281+
if (!extension_loaded("ffi")) {
282+
throw new Exception("FFI extension not loaded");
283283
}
284-
if (ini_get('ffi.enable') != 'true') {
285-
throw new Exception("ffi.enable not set to 'true'");
284+
$enable = ini_get("ffi.enable");
285+
if ($enable != "true") {
286+
throw new Exception("ffi.enable set to '$enable', not 'true'");
286287
}
287288

288289
$vips_libname = self::libraryName("libvips", 42);

0 commit comments

Comments
 (0)