File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
vips extension changelog
2
2
3
+ dev
4
+ ---
5
+ * Use VIPS_SONAME, if we can
6
+
3
7
Version 1.0.4 (2016-12-30)
8
+ --------------------------
4
9
* Improve graceful fix from 1.0.3, see https://github.com/jcupitt/php-vips/issues/27
5
10
* Better notes section in package.xml, see https://github.com/jcupitt/php-vips/issues/28
6
11
Original file line number Diff line number Diff line change @@ -1646,7 +1646,12 @@ PHP_MINIT_FUNCTION(vips)
1646
1646
* We can't just load .so, that's only installed with libvips-dev,
1647
1647
* which may not be present at runtime.
1648
1648
*/
1649
- if (!dlopen ("libvips.so.42" , RTLD_LAZY | RTLD_NODELETE )) {
1649
+ #ifdef VIPS_SONAME
1650
+ if (!dlopen (VIPS_SONAME , RTLD_LAZY | RTLD_NODELETE ))
1651
+ #else /*!VIPS_SONAME*/
1652
+ if (!dlopen ("libvips.so.42" , RTLD_LAZY | RTLD_NODELETE ))
1653
+ #endif /*VIPS_SONAME*/
1654
+ {
1650
1655
sapi_module .sapi_error (E_WARNING , "php-vips-ext: unable to lock "
1651
1656
"libvips -- graceful may be unreliable" );
1652
1657
}
You can’t perform that action at this time.
0 commit comments