Re: [PECL-DEV] Trying to Load Compiled Extension
[email protected] (Rasmus Lerdorf)
| Newsgroups | php.pecl.dev |
|---|---|
| Message-ID | <[email protected]> |
Nicholas Williams wrote:
> for Mac OS X Snow Leopard 10.6.2. It compiles without error and says
> that the extension has been copied to the proper directory. However, if
> I try to load the extension either with dl('rawsockets.so') or
> extension=rawsockets.so in the INI file, I get the error "PHP Warning:
> PHP Startup: Invalid library (maybe not a PHP library) 'rawsockets.so'
> in Unknown on line 0 phpinfo()". If, per some suggestions I found
> online, I try to load it with
> zend_extension=/usr/lib/php5/extensions/rawsockets.so, I get the error
> "/usr/lib/php5/extensions/rawsockets.so doesn't appear to be a valid
> Zend extension."
This happens when your .so does not have get_module().
Check it with:
nm -o rawsockets.so | grep get_module
-Rasmus