Blame SOURCES/php-7.1.16-dlopen.patch

c3cddd
diff -up php-7.1.16RC1/sapi/litespeed/lsapilib.c.dlopen php-7.1.16RC1/sapi/litespeed/lsapilib.c
c3cddd
--- php-7.1.16RC1/sapi/litespeed/lsapilib.c.dlopen	2018-03-14 13:19:47.998931942 +0100
c3cddd
+++ php-7.1.16RC1/sapi/litespeed/lsapilib.c	2018-03-14 13:20:30.942148432 +0100
c3cddd
@@ -755,7 +755,7 @@ static int (*fp_lve_leave)(struct liblve
a53bc2
 static int (*fp_lve_jail)( struct passwd *, char *) = NULL;
c3cddd
 static int lsapi_load_lve_lib(void)
a53bc2
 {
a53bc2
-    s_liblve = dlopen("liblve.so.0", RTLD_LAZY);
a53bc2
+    s_liblve = dlopen("liblve.so.0", RTLD_NOW);
a53bc2
     if (s_liblve)
a53bc2
     {
a53bc2
         fp_lve_is_available = dlsym(s_liblve, "lve_is_available");
c3cddd
diff -up php-7.1.16RC1/Zend/zend_portability.h.dlopen php-7.1.16RC1/Zend/zend_portability.h
c3cddd
--- php-7.1.16RC1/Zend/zend_portability.h.dlopen	2018-03-14 06:00:31.000000000 +0100
c3cddd
+++ php-7.1.16RC1/Zend/zend_portability.h	2018-03-14 13:19:47.998931942 +0100
a53bc2
@@ -146,11 +146,11 @@
a53bc2
 # endif
a53bc2
 
a53bc2
 # if defined(RTLD_GROUP) && defined(RTLD_WORLD) && defined(RTLD_PARENT)
a53bc2
-#  define DL_LOAD(libname)			dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_GROUP | RTLD_WORLD | RTLD_PARENT)
a53bc2
+#  define DL_LOAD(libname)			dlopen(libname, RTLD_NOW  | RTLD_GLOBAL | RTLD_GROUP | RTLD_WORLD | RTLD_PARENT)
a53bc2
 # elif defined(RTLD_DEEPBIND) && !defined(__SANITIZE_ADDRESS__)
a53bc2
-#  define DL_LOAD(libname)			dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_DEEPBIND)
a53bc2
+#  define DL_LOAD(libname)			dlopen(libname, RTLD_NOW  | RTLD_GLOBAL | RTLD_DEEPBIND)
a53bc2
 # else
a53bc2
-#  define DL_LOAD(libname)			dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
a53bc2
+#  define DL_LOAD(libname)			dlopen(libname, RTLD_NOW  | RTLD_GLOBAL)
a53bc2
 # endif
a53bc2
 # define DL_UNLOAD					dlclose
a53bc2
 # if defined(DLSYM_NEEDS_UNDERSCORE)