Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13539 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24313 invoked by uid 1010); 26 Oct 2004 22:13:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24288 invoked from network); 26 Oct 2004 22:13:16 -0000 Received: from unknown (HELO mproxy.gmail.com) (216.239.56.250) by pb1.pair.com with SMTP; 26 Oct 2004 22:13:16 -0000 Received: by mproxy.gmail.com with SMTP id u52so111880cwc for ; Tue, 26 Oct 2004 15:13:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=bB96uLYvcH/+M9qe7uVKQZpn7nXU0HcDRGQXxKoUR8LYWyJmsu02CVH1iInlF8T6UnL3CJFc/IWmmvxiCXgzxZifxEqSRjdWkr1M0MJZ1iNR/3vuHz3sD2Uy3tVtUKO6n8SL2iwSILI1QpxnHyLvEDYAIXtCSkp2WOiOTEzd1CM= Received: by 10.11.117.42 with SMTP id p42mr1001421cwc; Tue, 26 Oct 2004 15:13:16 -0700 (PDT) Received: by 10.11.117.13 with HTTP; Tue, 26 Oct 2004 15:13:16 -0700 (PDT) Message-ID: <4e89b4260410261513911b5ae@mail.gmail.com> Date: Tue, 26 Oct 2004 23:13:16 +0100 Reply-To: Wez Furlong To: internals , Andi Gutmans , Marcus Boerger Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: dl() unload / module shutdown issue still unresolved From: kingwez@gmail.com (Wez Furlong) 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);