|
|
fe1538 |
diff -up php-7.0.17RC1/sapi/litespeed/lsapilib.c.dlopen php-7.0.17RC1/sapi/litespeed/lsapilib.c
|
|
|
fe1538 |
--- php-7.0.17RC1/sapi/litespeed/lsapilib.c.dlopen 2017-02-28 12:11:33.000000000 +0100
|
|
|
fe1538 |
+++ php-7.0.17RC1/sapi/litespeed/lsapilib.c 2017-02-28 13:06:07.493838664 +0100
|
|
|
fe1538 |
@@ -616,7 +616,7 @@ static int (*fp_lve_leave)(struct liblve
|
|
|
de2dbd |
static int (*fp_lve_jail)( struct passwd *, char *) = NULL;
|
|
|
de2dbd |
static int lsapi_load_lve_lib()
|
|
|
de2dbd |
{
|
|
|
de2dbd |
- s_liblve = dlopen("liblve.so.0", RTLD_LAZY);
|
|
|
de2dbd |
+ s_liblve = dlopen("liblve.so.0", RTLD_NOW);
|
|
|
de2dbd |
if (s_liblve)
|
|
|
de2dbd |
{
|
|
|
de2dbd |
fp_lve_is_available = dlsym(s_liblve, "lve_is_available");
|
|
|
fe1538 |
diff -up php-7.0.17RC1/Zend/zend_portability.h.dlopen php-7.0.17RC1/Zend/zend_portability.h
|
|
|
fe1538 |
--- php-7.0.17RC1/Zend/zend_portability.h.dlopen 2017-02-28 13:06:07.493838664 +0100
|
|
|
fe1538 |
+++ php-7.0.17RC1/Zend/zend_portability.h 2017-02-28 13:07:10.626118397 +0100
|
|
|
fe1538 |
@@ -146,11 +146,11 @@
|
|
|
de2dbd |
# endif
|
|
|
de2dbd |
|
|
|
de2dbd |
# if defined(RTLD_GROUP) && defined(RTLD_WORLD) && defined(RTLD_PARENT)
|
|
|
de2dbd |
-# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_GROUP | RTLD_WORLD | RTLD_PARENT)
|
|
|
de2dbd |
+# define DL_LOAD(libname) dlopen(libname, RTLD_NOW | RTLD_GLOBAL | RTLD_GROUP | RTLD_WORLD | RTLD_PARENT)
|
|
|
fe1538 |
# elif defined(RTLD_DEEPBIND) && !defined(__SANITIZE_ADDRESS__)
|
|
|
de2dbd |
-# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_DEEPBIND)
|
|
|
de2dbd |
+# define DL_LOAD(libname) dlopen(libname, RTLD_NOW | RTLD_GLOBAL | RTLD_DEEPBIND)
|
|
|
de2dbd |
# else
|
|
|
de2dbd |
-# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
|
|
|
de2dbd |
+# define DL_LOAD(libname) dlopen(libname, RTLD_NOW | RTLD_GLOBAL)
|
|
|
de2dbd |
# endif
|
|
|
de2dbd |
# define DL_UNLOAD dlclose
|
|
|
de2dbd |
# if defined(DLSYM_NEEDS_UNDERSCORE)
|