summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-07-28 21:07:43 (GMT)
committerJani Taskinen <jani@php.net>2009-07-28 21:07:43 (GMT)
commit907763a20a387aef72a6d55c05064b22ba56c742 (patch)
treed9a436f2869923360fe47b531bb7083da43f0412 /sapi
parentb5b83031942fca0983faabd3e70babc1f707b777 (diff)
downloadphp-907763a20a387aef72a6d55c05064b22ba56c742.tar.gz
- Fixed bug #48911 (embed sapi misses SAPI_API)
Diffstat (limited to 'sapi')
-rw-r--r--sapi/embed/php_embed.c6
-rw-r--r--sapi/embed/php_embed.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c
index c3fd384..62dc2ad 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 215485f..7abf1c2 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()