Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1134 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15353 invoked from network); 1 May 2003 20:13:34 -0000 Received: from unknown (HELO web12808.mail.yahoo.com) (216.136.174.43) by pb1.pair.com with SMTP; 1 May 2003 20:13:34 -0000 Message-ID: <20030501201333.25222.qmail@web12808.mail.yahoo.com> Received: from [128.122.155.151] by web12808.mail.yahoo.com via HTTP; Thu, 01 May 2003 13:13:33 PDT Date: Thu, 1 May 2003 13:13:33 -0700 (PDT) Reply-To: hans@nyphp.org To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: dl and extension directive in php.ini From: zaunere@yahoo.com (Hans Zaunere) Hello, I'm hearing some conflicting reports and I'd like to see other's thoughts on this. Loading an external module using dl() at runtime obviously loads the module per request (ie, performance hit). 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. Basiclly, I'm of the understanding that dl() is 'bad' anyway, so I guess the question really is: when specifying a dynamic module (.so) from php.ini, does it get loaded per request or at process creation time? Thanks, H