Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13545 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29630 invoked by uid 1010); 26 Oct 2004 23:12:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29605 invoked from network); 26 Oct 2004 23:12:47 -0000 Received: from unknown (HELO smtp2.ActiveState.com) (209.17.183.249) by pb1.pair.com with SMTP; 26 Oct 2004 23:12:47 -0000 Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp2.ActiveState.com (8.12.10/8.12.10) with ESMTP id i9QN1TXH021541; Tue, 26 Oct 2004 16:01:29 -0700 (envelope-from shane@caraveo.com) Received: from [192.168.3.199] (cuetzpalli.activestate.com [192.168.3.199]) by smtp3.ActiveState.com (8.12.11/8.12.11) with ESMTP id i9QN1EF9009866; Tue, 26 Oct 2004 16:01:14 -0700 (envelope-from shane@caraveo.com) Message-ID: <417ED858.3040004@caraveo.com> Date: Tue, 26 Oct 2004 16:06:00 -0700 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rasmus Lerdorf CC: Wez Furlong , internals , Andi Gutmans , Marcus Boerger References: <4e89b4260410261513911b5ae@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] dl() unload / module shutdown issue still unresolved From: shane@caraveo.com (Shane Caraveo) Rasmus Lerdorf wrote: > On Tue, 26 Oct 2004, Wez Furlong wrote: > >>It should be safe to never ever dlclose() a module. > > > Do you mean never to dlclose() a module loaded via dl() at request time or > do you mean that in general it should be safe to never dlclose() a module > even if it came in via an extension line in the php.ini file? The former > is likely a true statement, but the latter is definitely not. > > -Rasmus It's exactly how other languages deal with binary extensions, once loaded, never unload, even between requests. That approach would fix and greatly simplify dl for php (note I haven't looked at dl code in more than a year so I could be speaking out of my ass). The double pass that Apache could be handled by having php_apache avoid processing extensions on the first pass. Shane