Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1136 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20800 invoked from network); 1 May 2003 20:17:30 -0000 Received: from unknown (HELO www.lerdorf.com) (66.93.78.119) by pb1.pair.com with SMTP; 1 May 2003 20:17:30 -0000 Received: from rasmus2.corp.yahoo.com (rasmus2.corp.yahoo.com [207.126.232.175]) by www.lerdorf.com (8.12.9/8.12.9/Debian-3) with ESMTP id h41KHTjh028286 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 1 May 2003 13:17:29 -0700 Date: Thu, 1 May 2003 13:17:25 -0700 (PDT) To: hans@nyphp.org cc: internals@lists.php.net In-Reply-To: <20030501201333.25222.qmail@web12808.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] dl and extension directive in php.ini From: rasmus@lerdorf.com (Rasmus Lerdorf) References: <20030501201333.25222.qmail@web12808.mail.yahoo.com> > On the other hand, which I believe is the recommended method anyway, is using > the extension= directive in php.ini. While this is still a dynamic module > load, it should only happen once; for instance when the Apache child process > is forked. However, while reading some Zend API docs I began to doubt this, > so I'm interested in some confirmations. Not sure what you are reading, but yes, if you use extension=foo.so in your php.ini file, then foo.so is only loaded at server startup time. However, due to funky Apache startup stuff, it is actually loaded, unloaded and then loaded again at startup, but from then on there is no per-request loading or unloading as there is with dl(). -Rasmus