From: foobar Date: Mon, 15 Mar 2004 16:06:29 +0000 (+0000) Subject: - Fixed bug #24582 (extensions can not be loaded dynamically in Solaris/iPlanet) X-Git-Tag: php-5.0.0RC1RC2~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97f81830b87edceb9be2debe6864df410ba6dc15;p=php - Fixed bug #24582 (extensions can not be loaded dynamically in Solaris/iPlanet) --- 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)