diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c index 79e6f801d84..10cf6ed3eee 100644 --- a/sapi/embed/php_embed.c +++ b/sapi/embed/php_embed.c @@ -99,7 +99,7 @@ static int php_embed_startup(sapi_module_struct *sapi_module) return SUCCESS; } -static sapi_module_struct php_embed_module = { +sapi_module_struct php_embed_module = { "embedded", /* name */ "PHP Embedded Library", /* pretty name */ diff --git a/sapi/embed/php_embed.h b/sapi/embed/php_embed.h index e5b6962d8d7..2a0d88e1e7d 100644 --- a/sapi/embed/php_embed.h +++ b/sapi/embed/php_embed.h @@ -54,6 +54,7 @@ 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; END_EXTERN_C()