Skip to content

ffi.enable check incorrect, default value passes it, even if not enabled #286

@ping-localhost

Description

@ping-localhost

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions