cvs: ZendEngine2 / zend.h
| From: | Jani Taskinen | Date: | Tue, 25 Jan 2005 13:08:05 +0000 |
| Subject: | cvs: ZendEngine2 / zend.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3341@lists.php.net to get a copy of this message | ||
sniper Tue Jan 25 08:08:05 2005 EDT
Modified files:
/ZendEngine2 zend.h
Log:
New versions of glibc support a RTLD_DEEPBIND flag to dlopen. The
effect of this flag when loading a "foo.so" with undefined symbols is
that the search that symbol starts at foo.so and its dependencies
*before* the loading process' global symbol table.
This is an effective workaround for symbol namespace collisions between
various modules and the libraries on which they depend (where fixing the
respective modules or libraries is not possible e.g. due to API
constraints).
(By: Joe Orton)
http://cvs.php.net/diff.php/ZendEngine2/zend.h?r1=1.269&r2=1.270&ty=u
Index: ZendEngine2/zend.h
diff -u ZendEngine2/zend.h:1.269 ZendEngine2/zend.h:1.270
--- ZendEngine2/zend.h:1.269 Wed Jan 19 21:02:08 2005
+++ ZendEngine2/zend.h Tue Jan 25 08:08:05 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend.h,v 1.269 2005/01/20 02:02:08 sniper Exp $ */
+/* $Id: zend.h,v 1.270 2005/01/25 13:08:05 sniper Exp $ */
#ifndef ZEND_H
#define ZEND_H
@@ -104,6 +104,8 @@
# 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)
+# elif defined(RTLD_DEEPBIND)
+# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_DEEPBIND)
# else
# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
# endif