-
Notifications
You must be signed in to change notification settings - Fork 27
Move FFI functions to a separate class #147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Oh wait, the above mentioned checks need to be modified anyway, because the |
... perhaps we need to find another name for this new class, since the FFI class is already used by the FFI extension? |
The FFI class in this case is namespaced, so that shouldn't be an issue? |
The problem in imagine is more that there is already 2.0.3 released, so I need to check for all cases. (Or just exclude 2.0.0 - 2.0.3 in composer.json, which shouldn't be an issue to do, because I don't think anyone needs <= 2.0.3 but not > 2.0.3) |
Ooop, I'd forgotten this PR, sorry. Should we fix this up and release as 2.1? It might be useful to get something like this patch in too (look for libvips in a few standard locations): #140 (comment) |
No worries, it fell off my radar too. I'll rebase and update for inclusion in version 2.1.
Ah, I think it's due to Apple's security restrictions, where Perhaps we could reinstate the removed export VIPSHOME=$(brew --prefix vips)
Indeed, that shouldn't be an issue (I hadn't been working on any PHP-related code lately). |
Allow users to set the `VIPSHOME` env when libvips is installed in a non-standard path. On macOS, always search in `/opt/homebrew/lib/` as a fallback. In most cases, either the `LD_LIBRARY_PATH` or `DYLD_LIBRARY_PATH` env is preferred. On macOS, however, that no longer works since Apple introduced System Integrity Protection (SIP). See: libvips#140.
... included that patch with some modifications in commit 0b29a6e, but let me know if you prefer that in a separate PR. |
That all looks great! I'll make 2.1. |
Just for the record. I updated https://github.com/rokka-io/imagine-vips with those additions (and excluded php-vips 2.0 in composer.json to make life easier in the code) |
Ack I'm always doing that, the behaviour is so confusing, sorry. |
This makes it easier to check whether php-vips is based on FFI or php-vips-ext at runtime.
/cc @chregu since these checks needs to be adjusted after this PR:
https://github.com/rokka-io/imagine-vips/blob/a70db9c3fc678fcb3b70c99682e15ad45325f27f/lib/Imagine/Vips/Imagine.php#L53
https://github.com/rokka-io/imagine-vips/blob/a70db9c3fc678fcb3b70c99682e15ad45325f27f/lib/Imagine/Vips/Imagine.php#L208