]> granicus.if.org Git - php/commitdiff
- Fixed bug #48911 (embed sapi misses SAPI_API)
authorJani Taskinen <jani@php.net>
Tue, 28 Jul 2009 21:07:43 +0000 (21:07 +0000)
committerJani Taskinen <jani@php.net>
Tue, 28 Jul 2009 21:07:43 +0000 (21:07 +0000)
sapi/embed/php_embed.c
sapi/embed/php_embed.h

index 8995067276d65bdba372615b60b6b75c81c422b9..d5997b67bc074227edd972cfcdd5514f6380321a 100644 (file)
@@ -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);
index 215485f558dc226fecd8ed9a987edde2b0236a50..7abf1c20298343cee82aae043ecd2ced34003a99 100644 (file)
@@ -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()