Skip to content

Commit 8cc4fc6

Browse files
author
Sascha Schumann
committed
Disable ZEND_EXTENSIONS_SUPPORT, if RTLD_NOW is not defined.
Note that this part could be made platform independent by using libltdl (for Solaris, Linux, *BSD, HP-UX, Win16/32, BeOS).
1 parent 0cc1641 commit 8cc4fc6

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

Zend/acconfig.h

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,11 @@
6060
/* Define if you have stdiostream.h */
6161
#undef HAVE_STDIOSTREAM_H
6262

63-
#ifdef HAVE_LIBDL
64-
# ifdef HAVE_DLFCN_H
65-
# include <dlfcn.h>
66-
# endif
67-
# if !defined(RTLD_NOW) && defined(DL_NOW)
68-
# define RTLD_NOW DL_NOW
69-
# endif
70-
# if !defined(RTLD_NOW) && defined(DL_LAZY)
71-
# define RTLD_NOW DL_LAZY
72-
# endif
63+
#ifdef HAVE_DLFCN_H
64+
# include <dlfcn.h>
65+
#endif
66+
67+
#if defined(HAVE_LIBDL) && defined(RTLD_NOW)
7368
# define DL_LOAD(libname) dlopen(libname, RTLD_NOW)
7469
# define DL_UNLOAD dlclose
7570
# define DL_FETCH_SYMBOL dlsym

0 commit comments

Comments
 (0)