Skip to content

Commit

Permalink
- Fixed bug #48911 (embed sapi misses SAPI_API)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jani Taskinen committed Jul 28, 2009
1 parent b5b8303 commit 907763a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sapi/embed/php_embed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions sapi/embed/php_embed.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 907763a

Please sign in to comment.