You need to do a

ZEND_GET_MODULE(modulename);

in yor extension.

George

On Tuesday, July 2, 2002, at 03:25 PM, Torsten Curdt wrote:

> On Tuesday 02 July 2002 21:21, [EMAIL PROTECTED] wrote:
>> On Tue, 2 Jul 2002, Torsten Curdt wrote:
>>> Two simple questions:
>>>
>>> 1) Does the "core" (aka libphp4.so) need to know about all possible
>>> extension modules at compilation time (--with-FOO=shared) in order to
>>> load a module? Or is it possible to just load any module that is 
>>> compiled
>>> against the same php version?
>>
>> The latter, libphp4.so doesn't need to know about shared modules.
>>
>>> 2) When will extension modules be loaded when using mod_php within
>>> apache? I assume for each apache child?
>>
>> If you specified them in php.ini, they will be loaded for every apache
>> child.
>
> Thanks! That was quick :-)
>
> Hm... but now I am back puzzled why I cannot load my self compiled 
> extension
> module. I always get:
>
>   PHP Warning:  Invalid library (maybe not a PHP library) '..'
>
> I thought I get this because it needs to be "registered" at compile 
> time.
> But since this is not the case I am bit lost :-/
> --
> Torsten
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
// George Schlossnagle
// Principal Consultant
// OmniTI, Inc          http://www.omniti.com
// (c) 240.460.5234   (e) [EMAIL PROTECTED]
// 1024D/1100A5A0  1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to