summaryrefslogtreecommitdiffstats
path: root/php-7.1.16-dlopen.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-03-14 16:21:11 +0100
committerRemi Collet <remi@remirepo.net>2018-03-14 16:21:11 +0100
commit755af19adc8fc00e300152e3954d9e605ba85c48 (patch)
tree9e2b81a24360f585a4e260bae36039479191b630 /php-7.1.16-dlopen.patch
parentd3413a5834760e12fa271f111b4cf36ccda38945 (diff)
v7.1.16RC1
Diffstat (limited to 'php-7.1.16-dlopen.patch')
-rw-r--r--php-7.1.16-dlopen.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/php-7.1.16-dlopen.patch b/php-7.1.16-dlopen.patch
new file mode 100644
index 0000000..7ace226
--- /dev/null
+++ b/php-7.1.16-dlopen.patch
@@ -0,0 +1,30 @@
+diff -up php-7.1.16RC1/sapi/litespeed/lsapilib.c.dlopen php-7.1.16RC1/sapi/litespeed/lsapilib.c
+--- php-7.1.16RC1/sapi/litespeed/lsapilib.c.dlopen 2018-03-14 13:19:47.998931942 +0100
++++ php-7.1.16RC1/sapi/litespeed/lsapilib.c 2018-03-14 13:20:30.942148432 +0100
+@@ -755,7 +755,7 @@ static int (*fp_lve_leave)(struct liblve
+ static int (*fp_lve_jail)( struct passwd *, char *) = NULL;
+ static int lsapi_load_lve_lib(void)
+ {
+- s_liblve = dlopen("liblve.so.0", RTLD_LAZY);
++ s_liblve = dlopen("liblve.so.0", RTLD_NOW);
+ if (s_liblve)
+ {
+ fp_lve_is_available = dlsym(s_liblve, "lve_is_available");
+diff -up php-7.1.16RC1/Zend/zend_portability.h.dlopen php-7.1.16RC1/Zend/zend_portability.h
+--- php-7.1.16RC1/Zend/zend_portability.h.dlopen 2018-03-14 06:00:31.000000000 +0100
++++ php-7.1.16RC1/Zend/zend_portability.h 2018-03-14 13:19:47.998931942 +0100
+@@ -146,11 +146,11 @@
+ # endif
+
+ # if defined(RTLD_GROUP) && defined(RTLD_WORLD) && defined(RTLD_PARENT)
+-# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_GROUP | RTLD_WORLD | RTLD_PARENT)
++# define DL_LOAD(libname) dlopen(libname, RTLD_NOW | RTLD_GLOBAL | RTLD_GROUP | RTLD_WORLD | RTLD_PARENT)
+ # elif defined(RTLD_DEEPBIND) && !defined(__SANITIZE_ADDRESS__)
+-# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_DEEPBIND)
++# define DL_LOAD(libname) dlopen(libname, RTLD_NOW | RTLD_GLOBAL | RTLD_DEEPBIND)
+ # else
+-# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
++# define DL_LOAD(libname) dlopen(libname, RTLD_NOW | RTLD_GLOBAL)
+ # endif
+ # define DL_UNLOAD dlclose
+ # if defined(DLSYM_NEEDS_UNDERSCORE)