From: Jani Taskinen Date: Tue, 28 Jul 2009 21:07:43 +0000 (+0000) Subject: - Fixed bug #48911 (embed sapi misses SAPI_API) X-Git-Tag: php-5.2.11RC1~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18d7a1b4615df80d4ead88e606c7cc5be52ec635;p=php - Fixed bug #48911 (embed sapi misses SAPI_API) --- diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c index 8995067276..d5997b67bc 100644 --- a/sapi/embed/php_embed.c +++ b/sapi/embed/php_embed.c @@ -107,7 +107,7 @@ static int php_embed_startup(sapi_module_struct *sapi_module) return SUCCESS; } -sapi_module_struct php_embed_module = { +extern SAPI_API sapi_module_struct php_embed_module = { "embed", /* name */ "PHP Embedded Library", /* pretty name */ @@ -139,7 +139,7 @@ sapi_module_struct php_embed_module = { }; /* }}} */ -int php_embed_init(int argc, char **argv PTSRMLS_DC) +SAPI_API int php_embed_init(int argc, char **argv PTSRMLS_DC) { zend_llist global_vars; #ifdef ZTS @@ -202,7 +202,7 @@ int php_embed_init(int argc, char **argv PTSRMLS_DC) return SUCCESS; } -void php_embed_shutdown(TSRMLS_D) +SAPI_API void php_embed_shutdown(TSRMLS_D) { php_request_shutdown((void *) 0); php_module_shutdown(TSRMLS_C); diff --git a/sapi/embed/php_embed.h b/sapi/embed/php_embed.h index 215485f558..7abf1c2029 100644 --- a/sapi/embed/php_embed.h +++ b/sapi/embed/php_embed.h @@ -58,9 +58,9 @@ } BEGIN_EXTERN_C() -int php_embed_init(int argc, char **argv PTSRMLS_DC); -void php_embed_shutdown(TSRMLS_D); -extern sapi_module_struct php_embed_module; +SAPI_API int php_embed_init(int argc, char **argv PTSRMLS_DC); +SAPI_API void php_embed_shutdown(TSRMLS_D); +extern SAPI_API sapi_module_struct php_embed_module; END_EXTERN_C()