Skip to content

Commit 51fd496

Browse files
committed
Merge pull request #2 from Jille/master
Fix compilation as static PHP-module
2 parents 94fe321 + 46bb790 commit 51fd496

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

php_weakref.h

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737

3838
#include "wr_weakref.h"
3939

40+
extern zend_module_entry weakref_module_entry;
41+
#define phpext_weakref_ptr &weakref_module_entry
42+
4043
PHP_MINFO_FUNCTION(weakref);
4144

4245
PHP_MINIT_FUNCTION(weakref);

0 commit comments

Comments
 (0)