Skip to content

Commit c8eb148

Browse files
committed
Expose php_embed_module struct (and make Wez happy).
1 parent ac3dc9d commit c8eb148

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sapi/embed/php_embed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static int php_embed_startup(sapi_module_struct *sapi_module)
9999
return SUCCESS;
100100
}
101101

102-
static sapi_module_struct php_embed_module = {
102+
sapi_module_struct php_embed_module = {
103103
"embedded", /* name */
104104
"PHP Embedded Library", /* pretty name */
105105

sapi/embed/php_embed.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
BEGIN_EXTERN_C()
5555
int php_embed_init(int argc, char **argv PTSRMLS_DC);
5656
void php_embed_shutdown(TSRMLS_D);
57+
extern sapi_module_struct php_embed_module;
5758
END_EXTERN_C()
5859

5960

0 commit comments

Comments
 (0)