Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12732 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73806 invoked by uid 1010); 10 Sep 2004 21:04:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54075 invoked by uid 1007); 10 Sep 2004 20:55:15 -0000 Message-ID: <20040910205515.54074.qmail@pb1.pair.com> To: internals@lists.php.net Date: Fri, 10 Sep 2004 22:55:18 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: de, de-de, en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.228.58.230 Subject: php_module_startup: more than one additional_module impossible? From: nw@softwarekombinat.de (Norbert Wagner) Hi, I need to load more than one "additional_module" in my self-made SAPI-module. Looking around at the php/zend-API, I thought that the php_module_startup(...) function provides such functionality: int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_modules, uint num_additional_modules) But then, It looks to me that the *additional_modules - parameter is lacking an indirection: Shouldn't it be **additional_modules or *additional_modules[] instead? As long as you try to register only one additional module (which is what all the other SAPI-Modules do that I have found), everything is fine. But I'd like to register an arbitrary number of modules during startup without reading php.ini. Any Ideas? I am quite new to PHP, perhaps I have just missed the spot? Regards, Norbert