From 63530f0e89bbc4770f92ddfa4d77188060ad3dc0 Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Tue, 28 Jul 2009 21:07:43 +0000 Subject: [PATCH] - Fixed bug #48911 (embed sapi misses SAPI_API) --- sapi/embed/php_embed.c | 6 +++--- sapi/embed/php_embed.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c index fa22dd9cd3..9ac44fe29a 100644 --- a/sapi/embed/php_embed.c +++ b/sapi/embed/php_embed.c @@ -108,7 +108,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 */ @@ -152,7 +152,7 @@ static const zend_function_entry additional_functions[] = { {NULL, NULL, NULL} }; -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 @@ -217,7 +217,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 39bc0dbe0f..fe3c5a41f2 100644 --- a/sapi/embed/php_embed.h +++ b/sapi/embed/php_embed.h @@ -59,9 +59,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() -- 2.40.0