You might be right about that.
The current prototype does allow this though:
zend_module_entry modules[2] = {
{ ... first module ... },
{ ... second module ... }
};
php_module_startup(&sapimodule, modules, sizeof(modules)/sizeof(modules[0]));
There are other ways to fire up additional modules dynamically; take a
look at the code in ext/standard/dl.c to see how the dl() function
(and "extesion=" init statement) works.
--Wez.
On Fri, 10 Sep 2004 22:55:18 +0200, Norbert Wagner
<[EMAIL PROTECTED]> wrote:
> 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
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php