Re: Trying to Load Compiled Extension
| From: | Rasmus Lerdorf | Date: | Mon, 08 Feb 2010 05:28:31 +0000 |
| Subject: | Re: Trying to Load Compiled Extension | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-7007@lists.php.net to get a copy of this message | ||
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