Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24080 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35430 invoked by uid 1010); 10 Jun 2006 17:15:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35415 invoked from network); 10 Jun 2006 17:15:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2006 17:15:54 -0000 X-PHP-List-Original-Sender: mba2000@ioplex.com X-Host-Fingerprint: 66.220.1.142 li4-142.members.linode.com Linux 2.4/2.6 Received: from ([66.220.1.142:1760] helo=li4-142.members.linode.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D8/DB-30619-94EFA844 for ; Sat, 10 Jun 2006 13:15:53 -0400 Received: from quark.foo.net (c-69-142-196-170.hsd1.nj.comcast.net [69.142.196.170]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by li4-142.members.linode.com (Postfix) with ESMTP id 84F4C42C29 for ; Sat, 10 Jun 2006 13:15:49 -0400 (EDT) Date: Sat, 10 Jun 2006 13:14:59 -0400 To: internals@lists.php.net Message-ID: <20060610131459.1be2ba20.mba2000@ioplex.com> X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Extension Installer Catch 22 From: mba2000@ioplex.com (Michael B Allen) I'm writing an extension installer. I want to write the installer in PHP. This presents a problem if the extension was previously installed and is automatically being loaded because it can segfault after overwriting the .so module file. Can someone recommend a method to avoid this? I can think of a few: 1) Use the -c argument to php to load a custom minimalistic php.ini file that does load the extension being installed. The downside to this is that I would like to detect within the installer if the extension is already installed and is being loaded automatically. 2) Use -d installer=yes to enable the extension to detect when it is being loaded by the installer and return FALSE to indicate the extension was not loaded. The downside to this is that a warning is printed if the modudule initialization routine fails to load. Any other ideas? Thanks, Mike -- Michael B Allen PHP Extension for SSO w/ Windows Group Authorization http://www.ioplex.com/