From 97f81830b87edceb9be2debe6864df410ba6dc15 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 15 Mar 2004 16:06:29 +0000 Subject: [PATCH] - Fixed bug #24582 (extensions can not be loaded dynamically in Solaris/iPlanet) --- Zend/zend.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Zend/zend.h b/Zend/zend.h index 002c2beacc..5cc6f243e3 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -101,7 +101,11 @@ const char *zend_mh_bundle_error(void); # define RTLD_GLOBAL 0 # endif -# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL) +# 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) +# else +# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL) +# endif # define DL_UNLOAD dlclose # if defined(DLSYM_NEEDS_UNDERSCORE) # define DL_FETCH_SYMBOL(h,s) dlsym((h), "_" s) -- 2.40.0