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