Was trying to resolve why I kept getting this error, even though I was certain that I installed the extension properly:
Unable to open library 'libvips.42.dylib' in any of ['/opt/homebrew/lib/']. Make sure that you've installed libvips and that 'libvips.42.dylib' is on your system's library search path.
So I added a debugger and the actual error being thrown was: FFI API is restricted by "ffi.enable" configuration directive.
Since ini_get('ffi.enable') returns preload instead of false it passes the following check:
|
if (!ini_get('ffi.enable')) { |
This is incorrect and should be changed to check for an actual true.