carlwgeorge / rpms / php

Forked from rpms/php 2 years ago
Clone
612dd4b
diff -up php-7.2.4RC1/sapi/litespeed/lsapilib.c.dlopen php-7.2.4RC1/sapi/litespeed/lsapilib.c
612dd4b
--- php-7.2.4RC1/sapi/litespeed/lsapilib.c.dlopen	2018-03-13 12:40:25.330885880 +0100
612dd4b
+++ php-7.2.4RC1/sapi/litespeed/lsapilib.c	2018-03-13 12:41:35.797251042 +0100
612dd4b
@@ -755,7 +755,7 @@ static int (*fp_lve_leave)(struct liblve
3920d6f
 static int (*fp_lve_jail)( struct passwd *, char *) = NULL;
612dd4b
 static int lsapi_load_lve_lib(void)
3920d6f
 {
3920d6f
-    s_liblve = dlopen("liblve.so.0", RTLD_LAZY);
3920d6f
+    s_liblve = dlopen("liblve.so.0", RTLD_NOW);
3920d6f
     if (s_liblve)
3920d6f
     {
3920d6f
         fp_lve_is_available = dlsym(s_liblve, "lve_is_available");
612dd4b
diff -up php-7.2.4RC1/Zend/zend_portability.h.dlopen php-7.2.4RC1/Zend/zend_portability.h
612dd4b
--- php-7.2.4RC1/Zend/zend_portability.h.dlopen	2018-03-13 12:33:38.000000000 +0100
612dd4b
+++ php-7.2.4RC1/Zend/zend_portability.h	2018-03-13 12:40:25.330885880 +0100
612dd4b
@@ -144,11 +144,11 @@
8e68e30
 # endif
8e68e30
 
8e68e30
 # if defined(RTLD_GROUP) && defined(RTLD_WORLD) && defined(RTLD_PARENT)
8e68e30
-#  define DL_LOAD(libname)			dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_GROUP | RTLD_WORLD | RTLD_PARENT)
28750bd
+#  define DL_LOAD(libname)			dlopen(libname, RTLD_NOW  | RTLD_GLOBAL | RTLD_GROUP | RTLD_WORLD | RTLD_PARENT)
49f64eb
 # elif defined(RTLD_DEEPBIND) && !defined(__SANITIZE_ADDRESS__)
8e68e30
-#  define DL_LOAD(libname)			dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_DEEPBIND)
28750bd
+#  define DL_LOAD(libname)			dlopen(libname, RTLD_NOW  | RTLD_GLOBAL | RTLD_DEEPBIND)
8e68e30
 # else
8e68e30
-#  define DL_LOAD(libname)			dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
28750bd
+#  define DL_LOAD(libname)			dlopen(libname, RTLD_NOW  | RTLD_GLOBAL)
8e68e30
 # endif
8e68e30
 # define DL_UNLOAD					dlclose
8e68e30
 # if defined(DLSYM_NEEDS_UNDERSCORE)