Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37789 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35030 invoked from network); 22 May 2008 04:04:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 May 2008 04:04:53 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:43441] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/62-18020-5E0F4384 for ; Thu, 22 May 2008 00:04:53 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 22 May 2008 07:06:01 +0300 Received: from [192.168.17.4] ([192.168.17.4]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 21 May 2008 21:05:57 -0700 Message-ID: <4834F0CF.403@zend.com> Date: Wed, 21 May 2008 21:04:31 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Michael B Allen CC: internals@lists.php.net References: <78c6bd860805211445l5a8d811dn4d3f23cbb951cca2@mail.gmail.com> In-Reply-To: <78c6bd860805211445l5a8d811dn4d3f23cbb951cca2@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 May 2008 04:05:58.0202 (UTC) FILETIME=[23B229A0:01C8BBC1] Subject: Re: [PHP-DEV] How to abort MINIT? From: stas@zend.com (Stanislav Malyshev) Hi! > I provide an INI property to stop my extension from loading fully like: > > if (strcmp(sapi_module.name, "cli") == 0 && > INI_STR("plexcel.sapi.cli") && > INI_BOOL("plexcel.sapi.cli") == 0) { > return; > } > > But the extension is still loaded. It's just not initialized. if you return FAILURE, it will not be loaded, but it will produce E_CORE_ERROR. If you don't like that I'd recommend to keep extension loaded but not register any functions, etc and write some descriptive stuff in phpinfo(). -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com