Re: Licensing and errors when loading module

From: Date: Tue, 09 Jul 2002 17:31:56 +0000
Subject: Re: Licensing and errors when loading module
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7594@lists.php.net to get a copy of this message
On Tue, Jul 09, 2002 at 06:20:20PM +0200, Jelmer Vernooij wrote : > I'm also getting errors when trying to use my smbc.so module. When > statically compiled into PHP there are no problems at all - but when > compiled as a DSO (for pear/pecl) I get the following error when > trying to load it: > > Invalid library (maybe not a PHP library) In the source you should have three line similar to this: #ifdef COMPILE_DL_SMBC ZEND_GET_MODULE(smbc) #endif The ZEND_GET_MODULE() macro defines the appropriate get_module() function you need. Normall, COMPILE_DL_SMBC is automatically defined if you have a proper written config.m4 and want to use is as a shared file. Or you forgot to include "config.h": #ifdef HAVE_CONFIG_H #include "config.h" #endif - Markus

« previous php.pear.dev (#7594) next »