Re: cvs: php4 /ext/domxml domxml.dsp

From: Date: Fri, 31 May 2002 08:13:59 +0000
Subject: Re: cvs: php4 /ext/domxml domxml.dsp
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12178@lists.php.net to get a copy of this message
> rodif_bl Fri May 31 02:01:50 2002 EDT > > Modified files: > /php4/ext/domxml domxml.dsp > Log: > defined PHP_EXPORTS for exporting php_domobject_new() AFAIK, you should not define PHP_EXPORTS in the extensions as it would cause linking problems if you use global variables PG(...) and friends. Instead, DOMXML_EXPORTS should be defined and php_domxml.h should contain something like this: #ifdef PHP_WIN32 #ifdef PHPAPI #undef PHPAPI #endif #ifdef DOMXML_EXPORTS #define PHPAPI __declspec(dllexport) #else #define PHPAPI __declspec(dllimport) #endif /* DOMXML_EXPORTS */ #endif /* PHP_WIN32 */ Edin

« previous php.cvs (#12178) next »