Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14256 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32914 invoked by uid 1010); 1 Jan 2005 07:09:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32895 invoked from network); 1 Jan 2005 07:09:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jan 2005 07:09:30 -0000 X-Host-Fingerprint: 202.81.246.113 246-113.netfront.net Received: from ([202.81.246.113:53544] helo=newweb.akbkhome.com) by pb1.pair.com (ecelerity HEAD (r3992M)) with SMTP id C2/61-39595-9AC46D14 for ; Sat, 01 Jan 2005 02:09:30 -0500 Received: from [192.168.0.40] (helo=[192.168.0.40] ident=alan) by newweb.akbkhome.com with esmtp (Exim 4.34) id 1CkdSp-0008FX-7I for internals@lists.php.net; Sat, 01 Jan 2005 15:14:15 +0800 Message-ID: <41D64D24.4060407@akbkhome.com> Date: Sat, 01 Jan 2005 15:11:32 +0800 User-Agent: Mozilla Thunderbird 0.8+ (X11/20041029) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ACL-Warn: "cleared badlog" Subject: dl() usage for cli php5 From: alan@akbkhome.com (Alan Knowles) I'm getting segfaults at shutdown when using dl() with my extension - works perfectly if it's in php.ini (or if I run when compiled with --enable-debug a) is this a known issue? b) is it fixable for cli usage? I'm guessing this is because modules are destroyed before the objects that they created are . looking at main/main.c :php_request_shutdown_for_hook() - a temporary fix may be to check for sapi == cli and skip the zend_deactivate_modules, and add it to the sapi_deactivate_cli.. Regards Alan