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