Just noticed that I still have a pending commit:

Can someone more familiar with the load order figure out what happened
to break this?
The problem is that when you dl(), PHP segfaults during shutdown for
any dl()'d extension that creates objects and where the script has
globals referencing them.

It should be safe to never ever dlclose() a module.

--Wez.

Index: Zend/zend_API.c
===================================================================
RCS file: /repository/ZendEngine2/zend_API.c,v
retrieving revision 1.268
diff -u -p -r1.268 zend_API.c
--- Zend/zend_API.c     29 Sep 2004 20:57:07 -0000      1.268
+++ Zend/zend_API.c     26 Oct 2004 22:01:23 -0000
@@ -1520,7 +1520,7 @@ void module_destructor(zend_module_entry
                zend_unregister_functions(module->functions, -1, NULL
TSRMLS_CC);
        }
 
-#if HAVE_LIBDL
+#if HAVE_LIBDL && 0
 #if !(defined(NETWARE) && defined(APACHE_1_BUILD))
         if (module->handle) {
             dlclose(module->handle);

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to